From e78ba2b427dba9ecca979cb8cdb06a79d03acae5 Mon Sep 17 00:00:00 2001 From: Andy Grover Date: Tue, 6 Oct 2020 14:40:33 -0700 Subject: [PATCH] scoutfs-utils: specify types for some long constants This avoids warnings on Centos 7 from gcc 4.8.5. --- utils/src/hash.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/utils/src/hash.h b/utils/src/hash.h index 9b169877..cb50b99c 100644 --- a/utils/src/hash.h +++ b/utils/src/hash.h @@ -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;