Skip to content

Commit

Permalink
use unsigned for ffzl definition
Browse files Browse the repository at this point in the history
This makes more sense and avoids clang tidy conversion warnings.
  • Loading branch information
thestinger committed Jan 3, 2022
1 parent 8ae7823 commit c6af50d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion util.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
#define STRINGIFY(s) #s
#define ALIAS(f) __attribute__((alias(STRINGIFY(f))))

static inline int ffzl(long x) {
static inline int ffzl(unsigned long x) {
return __builtin_ffsl(~x);
}

Expand Down

0 comments on commit c6af50d

Please sign in to comment.