summaryrefslogtreecommitdiffstats
path: root/src/bit.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/bit.h')
-rw-r--r--src/bit.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bit.h b/src/bit.h
index efd7d27..8cde9b3 100644
--- a/src/bit.h
+++ b/src/bit.h
@@ -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) \