diff options
Diffstat (limited to 'src/core')
| -rw-r--r-- | src/core/idhash.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/core/idhash.c b/src/core/idhash.c index 17e80210..a13a16c8 100644 --- a/src/core/idhash.c +++ b/src/core/idhash.c @@ -92,8 +92,7 @@ nni_idhash_set_limits( // Inspired by Python dict implementation. This probe will visit every // cell. We always hash consecutively assigned IDs. #define NNI_IDHASH_NEXTPROBE(h, j) ((((j) *5) + 1) & (h->ih_cap - 1)) -#define NNI_IDHASH_INDEX(h, j) \ - (((j & 0xffffffff) ^ (j >> 32)) & (h->ih_cap - 1)) +#define NNI_IDHASH_INDEX(h, j) ((j) & (h->ih_cap - 1)) static size_t nni_hash_find_index(nni_idhash *h, uint64_t id) |
