diff options
author | antirez <antirez@gmail.com> | 2020-05-05 10:27:27 +0200 |
---|---|---|
committer | antirez <antirez@gmail.com> | 2020-05-05 10:27:27 +0200 |
commit | 5fdc5e5c25451c2afc30c2a8aa16a1491c75015e (patch) | |
tree | 61d11c7cb014336454054496a52623b0cb56cb85 /src/dict.c | |
parent | 154e735c46dd77d264eb469928cb3ff7bab1e091 (diff) | |
download | redis-5fdc5e5c25451c2afc30c2a8aa16a1491c75015e.tar.gz |
Drop not needed part from #7194.
Diffstat (limited to 'src/dict.c')
-rw-r--r-- | src/dict.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dict.c b/src/dict.c index 57619c280..13c185253 100644 --- a/src/dict.c +++ b/src/dict.c @@ -768,7 +768,7 @@ dictEntry *dictGetFairRandomKey(dict *d) { static unsigned long rev(unsigned long v) { unsigned long s = CHAR_BIT * sizeof(v); // bit size; must be power of 2 unsigned long mask = ~0UL; - while ((s >>= 1) > 0UL) { + while ((s >>= 1) > 0) { mask ^= (mask << s); v = ((v >> s) & mask) | ((v << s) & ~mask); } |