From c6af50d0881c58b5e5d139c96ee446373dac42df Mon Sep 17 00:00:00 2001 From: Daniel Micay Date: Mon, 3 Jan 2022 01:29:12 -0500 Subject: [PATCH] use unsigned for ffzl definition This makes more sense and avoids clang tidy conversion warnings. --- util.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util.h b/util.h index 3c7a428..4c7ac9f 100644 --- a/util.h +++ b/util.h @@ -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); }