]> git.ipfire.org Git - thirdparty/bind9.git/commit
fix: dev: switch bit rotation functions to statement expressions
authorAydın Mercan <aydin@isc.org>
Mon, 25 Aug 2025 12:08:44 +0000 (15:08 +0300)
committerAydın Mercan <aydin@isc.org>
Mon, 25 Aug 2025 12:08:44 +0000 (15:08 +0300)
commit160bc1a1984df6028fa7b8c18808ab5b394d4154
tree311ab7aa69012fb2a2787c1a13dece57a346911d
parentec1e919389d0565252a334f08ea30ab47268ce38
parent7b7c853c07f2f469e3e8d89310a13286f6613556
fix: dev: switch bit rotation functions to statement expressions

Using `static inline` functions in the headers break gcov as it cannot
properly track the hits. To fix the issue, convert the expressions to
statement macros. The added static assertions will ensure integer
promotion cannot occur unlike its previous function counterpart.

Merge branch 'aydin/rotate-as-macro' into 'main'

See merge request isc-projects/bind9!10878