提交 38c4b80a 编写于 作者: K Kelvin Lee

Fix hashsize() should return size_t.

上级 ec1b6318
...@@ -73,7 +73,7 @@ on 1 byte), but shoehorning those bytes into integers efficiently is messy. ...@@ -73,7 +73,7 @@ on 1 byte), but shoehorning those bytes into integers efficiently is messy.
# define HASH_BIG_ENDIAN 0 # define HASH_BIG_ENDIAN 0
#endif #endif
#define hashsize(n) ((uint32_t)1<<(n)) #define hashsize(n) ((size_t)1<<(n))
#define hashmask(n) (hashsize(n)-1) #define hashmask(n) (hashsize(n)-1)
#define rot(x,k) (((x)<<(k)) | ((x)>>(32-(k)))) #define rot(x,k) (((x)<<(k)) | ((x)>>(32-(k))))
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册