summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2020-05-05 10:27:27 +0200
committerantirez <antirez@gmail.com>2020-05-05 10:27:27 +0200
commit5fdc5e5c25451c2afc30c2a8aa16a1491c75015e (patch)
tree61d11c7cb014336454054496a52623b0cb56cb85
parent154e735c46dd77d264eb469928cb3ff7bab1e091 (diff)
downloadredis-5fdc5e5c25451c2afc30c2a8aa16a1491c75015e.tar.gz
Drop not needed part from #7194.
-rw-r--r--src/dict.c2
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);
}