From 38c4b80ab70aaa9fbc3d728959083ddff9132b6e Mon Sep 17 00:00:00 2001 From: Kelvin Lee Date: Fri, 6 Nov 2020 08:40:20 +1100 Subject: [PATCH] Fix hashsize() should return size_t. --- src/lookup3.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lookup3.h b/src/lookup3.h index 7202b21..9b39aa1 100644 --- a/src/lookup3.h +++ b/src/lookup3.h @@ -73,7 +73,7 @@ on 1 byte), but shoehorning those bytes into integers efficiently is messy. # define HASH_BIG_ENDIAN 0 #endif -#define hashsize(n) ((uint32_t)1<<(n)) +#define hashsize(n) ((size_t)1<<(n)) #define hashmask(n) (hashsize(n)-1) #define rot(x,k) (((x)<<(k)) | ((x)>>(32-(k))))