diff --git a/include/ck_ht.h b/include/ck_ht.h index 8d933ab..1ce9376 100644 --- a/include/ck_ht.h +++ b/include/ck_ht.h @@ -122,7 +122,11 @@ CK_CC_INLINE static void * ck_ht_entry_key(ck_ht_entry_t *entry) { +#ifdef __x86_64__ return (void *)(entry->key & (((uintptr_t)1 << 48) - 1)); +#else + return (void *)entry->key; +#endif } CK_CC_INLINE static uint16_t