mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-27 12:48:22 +00:00
util: fix bad type casts on min/max
This commit is contained in:
@@ -23,13 +23,8 @@ static inline unsigned long log2(unsigned long x) {
|
||||
return sizeof(unsigned long) * 8 - __builtin_clzll(x) - 1;
|
||||
}
|
||||
|
||||
static inline long min(long x, long y) {
|
||||
return x > y ? y : x;
|
||||
}
|
||||
|
||||
static inline long max(long x, long y) {
|
||||
return x < y ? y : x;
|
||||
}
|
||||
#define min(x, y) (x > y ? y : x)
|
||||
#define max(x, y) (x < y ? y : x)
|
||||
|
||||
#define FNV1PRIME 0x100000001b3ull
|
||||
#define FNV1OFFSET 0xcbf29ce484222325ull
|
||||
|
||||
Reference in New Issue
Block a user