use unsigned for ffzl definition
This makes more sense and avoids clang tidy conversion warnings.pull/166/head 9
parent
8ae78237ae
commit
c6af50d088
2
util.h
2
util.h
|
@ -28,7 +28,7 @@
|
||||||
#define STRINGIFY(s) #s
|
#define STRINGIFY(s) #s
|
||||||
#define ALIAS(f) __attribute__((alias(STRINGIFY(f))))
|
#define ALIAS(f) __attribute__((alias(STRINGIFY(f))))
|
||||||
|
|
||||||
static inline int ffzl(long x) {
|
static inline int ffzl(unsigned long x) {
|
||||||
return __builtin_ffsl(~x);
|
return __builtin_ffsl(~x);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue