Change UniqueID hash function to look at the lowest instead of highest bytes. (#469)

This commit is contained in:
Richard Shin
2017-04-18 15:31:49 -07:00
committed by Philipp Moritz
parent 8ac6c59931
commit cf68cf743c
+1 -1
View File
@@ -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;
}
};