mirror of
https://github.com/GrapheneOS/hardened_malloc.git
synced 2025-04-19 22:10:19 +02:00
use unsigned for ffzl definition
This makes more sense and avoids clang tidy conversion warnings.
This commit is contained in:
parent
8ae78237ae
commit
c6af50d088
1 changed files with 1 additions and 1 deletions
2
util.h
2
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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue