Use UINT64_C() rather than LLU for 64-bit constants.

This commit is contained in:
Jason Evans
2012-03-05 12:26:26 -08:00
parent 3492daf1ce
commit b8c8be7f8a
6 changed files with 29 additions and 27 deletions

View File

@@ -26,7 +26,7 @@ uint64_t hash(const void *key, size_t len, uint64_t seed);
JEMALLOC_INLINE uint64_t
hash(const void *key, size_t len, uint64_t seed)
{
const uint64_t m = 0xc6a4a7935bd1e995LLU;
const uint64_t m = UINT64_C(0xc6a4a7935bd1e995);
const int r = 47;
uint64_t h = seed ^ (len * m);
const uint64_t *data = (const uint64_t *)key;