]> git.ipfire.org Git - location/libloc.git/commit
address: Never pass zero to __builtin_ctz
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 6 Mar 2025 17:59:03 +0000 (17:59 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 6 Mar 2025 17:59:03 +0000 (17:59 +0000)
commit0149fadd4a8941b7a57071d1362e77e24a0207ea
tree517746e562e7ebc40b45e6ebb9489f9927dc1d99
parenteac3f16bc6655383414cd1f94aa05423f58db2f2
address: Never pass zero to __builtin_ctz

This is undefined behaviour which worked just fine in GCC, but in clang
the code is doing funny business.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/libloc/address.h