Fix hashsize() should return size_t.
This commit is contained in:
parent
ec1b6318e4
commit
38c4b80ab7
@ -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))))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user