Fix hashsize() should return size_t.

This commit is contained in:
Kelvin Lee 2020-11-06 08:40:20 +11:00
parent ec1b6318e4
commit 38c4b80ab7

View File

@ -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))))