scoutfs-utils: specify types for some long constants

This avoids warnings on Centos 7 from gcc 4.8.5.
This commit is contained in:
Andy Grover
2020-10-06 14:40:33 -07:00
committed by Zach Brown
parent 8bd6646d9a
commit e78ba2b427

View File

@@ -26,11 +26,11 @@ static inline u32 fnv1a32(const void *data, unsigned int len)
static inline u64 fnv1a64(const void *data, unsigned int len)
{
u64 hash = 0xcbf29ce484222325;
u64 hash = 0xcbf29ce484222325ULL;
while (len--) {
hash ^= *(u8 *)(data++);
hash *= 0x100000001b3;
hash *= 0x100000001b3ULL;
}
return hash;