scoutfs: fix hash compiler warnings

Signed-off-by: Andy Grover <agrover@versity.com>
This commit is contained in:
Andy Grover
2020-10-29 14:15:33 -07:00
committed by Zach Brown
parent dc47ec65e4
commit 87cb971630
+2 -2
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;