summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2013-08-19 15:10:33 +0200
committerantirez <antirez@gmail.com>2013-08-19 15:11:09 +0200
commit19de8e46bf36e77ca61a966a777fbf63b9afcc45 (patch)
treec3ccf3bcac26bd76950d613af20e97c676f1ee14
parente16dd1d86b84b22d30f22b8b6fef3a60c5861346 (diff)
downloadredis-19de8e46bf36e77ca61a966a777fbf63b9afcc45.tar.gz
Fixed type in dict.c comment: 265 -> 256.
-rw-r--r--src/dict.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dict.c b/src/dict.c
index d2ff4a9ac..3b0ee6f8f 100644
--- a/src/dict.c
+++ b/src/dict.c
@@ -534,7 +534,7 @@ long long dictFingerprint(dict *d) {
/* For the hashing step we use Tomas Wang's 64 bit integer hash. */
hash = (~hash) + (hash << 21); // hash = (hash << 21) - hash - 1;
hash = hash ^ (hash >> 24);
- hash = (hash + (hash << 3)) + (hash << 8); // hash * 265
+ hash = (hash + (hash << 3)) + (hash << 8); // hash * 256
hash = hash ^ (hash >> 14);
hash = (hash + (hash << 2)) + (hash << 4); // hash * 21
hash = hash ^ (hash >> 28);