Skip to content

Commit c6af50d

Browse files
committed
use unsigned for ffzl definition
This makes more sense and avoids clang tidy conversion warnings.
1 parent 8ae7823 commit c6af50d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

util.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
#define STRINGIFY(s) #s
2929
#define ALIAS(f) __attribute__((alias(STRINGIFY(f))))
3030

31-
static inline int ffzl(long x) {
31+
static inline int ffzl(unsigned long x) {
3232
return __builtin_ffsl(~x);
3333
}
3434

0 commit comments

Comments
 (0)