From cf68cf743c94a04d77ad7497a3720fe5a3bc0be0 Mon Sep 17 00:00:00 2001 From: Richard Shin Date: Tue, 18 Apr 2017 15:31:49 -0700 Subject: [PATCH] Change UniqueID hash function to look at the lowest instead of highest bytes. (#469) --- src/common/common.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/common.h b/src/common/common.h index 41acfd50f..c58900d16 100644 --- a/src/common/common.h +++ b/src/common/common.h @@ -159,7 +159,7 @@ struct UniqueIDHasher { /* ObjectID hashing function. */ size_t operator()(const UniqueID &id) const { size_t result; - memcpy(&result, id.id + UNIQUE_ID_SIZE - sizeof(size_t), sizeof(size_t)); + memcpy(&result, id.id, sizeof(size_t)); return result; } };