Skip to content

Commit

Permalink
Fix the 32 bit build
Browse files Browse the repository at this point in the history
It got broken with the newest hash changes due to an ommited #define
line.
  • Loading branch information
samcv committed Jul 6, 2018
1 parent ef41080 commit a3e38fd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/strings/uthash.h
Expand Up @@ -124,7 +124,7 @@ do {
* If the size of the hashv is changed we will need to change max_hashv_div_phi,
* to be max_hashv / phi rounded to the nearest *odd* number.
* max_hashv / phi = 2654435769 */
const static uint32_t max_hashv_div_phi = 2654435769;
const static uint32_t max_hashv_div_phi = 2654435769LLU;
#define DETERMINE_BUCKET_FIB(hashv, offset) \
(((hashv) * max_hashv_div_phi) >> (32 - offset))

Expand Down Expand Up @@ -177,6 +177,7 @@ MVM_STATIC_INLINE MVMuint32 ptr_hash_32_to_32(uintptr_t u) {
#define ptr_hash(u) \
ptr_hash_64_to_64(u)
#else
#define ptr_hash(u) \
ptr_hash_32_to_32(u)
#endif

Expand Down

0 comments on commit a3e38fd

Please sign in to comment.