diff options
| -rw-r--r-- | cheesemap.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/cheesemap.c b/cheesemap.c index b0d723e..4f76714 100644 --- a/cheesemap.c +++ b/cheesemap.c @@ -175,7 +175,9 @@ static inline bitmask_t cm_group_match_tag(group_t group, cm_u8 tag) { /* ctrl's n stuff */ static inline cm_usize cm_h1(cm_hash_t hash) { - return (cm_usize)(hash >> CM_FP_SIZE); + // Primary hash function for indexing into the bucket array. + // On 32bit platforms, we ignore the top 32 bits of the hash + return (cm_usize)hash; } static inline cm_u8 cm_h2(cm_hash_t hash) { |
