diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2023-07-24 12:13:38 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2023-07-24 12:15:14 -0400 |
commit | 81dda3027c8e75a3e7988561614d153c888c046e (patch) | |
tree | e3c73ec29cb90ea4a821858260a5c997decb7f40 /src/bit.h | |
parent | 1d5eea47bdf198d6b3266ab0247a2aad3b74adf2 (diff) | |
download | bfs-81dda3027c8e75a3e7988561614d153c888c046e.tar.xz |
bit: Add a cast to squelch -Wsign-compare
I see this only with musl-gcc for some reason.
Diffstat (limited to 'src/bit.h')
-rw-r--r-- | src/bit.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -241,7 +241,7 @@ static inline uint8_t bswap8(uint8_t n) { #define TRAILING_ZEROS(type, suffix, width) \ static inline int trailing_zeros##suffix(type n) { \ - return n ? UINT_BUILTIN(ctz, suffix)(n) : width; \ + return n ? UINT_BUILTIN(ctz, suffix)(n) : (int)width; \ } #define FIRST_TRAILING_ONE(type, suffix, width) \ |