summaryrefslogtreecommitdiff
path: root/src/ziplist.c
diff options
context:
space:
mode:
authorJustin Carvalho <jstncarvalho@gmail.com>2016-12-19 17:37:41 -0500
committerJustin Carvalho <jstncarvalho@gmail.com>2016-12-19 17:37:41 -0500
commit7c64e8896393f2fe4859a4a039e95c6ff0047fce (patch)
treea6fc1b3464313fd2c0e00fa3320bb72fd789f39c /src/ziplist.c
parent8444b46d20ef9c8de3f7e255e4f3bfa44f509c77 (diff)
downloadredis-7c64e8896393f2fe4859a4a039e95c6ff0047fce.tar.gz
Fix missing brackets around encoding variable in ZIP_DECODE_LENGTH macro
Diffstat (limited to 'src/ziplist.c')
-rw-r--r--src/ziplist.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ziplist.c b/src/ziplist.c
index 684f8ccf8..a0939f640 100644
--- a/src/ziplist.c
+++ b/src/ziplist.c
@@ -249,7 +249,7 @@ static unsigned int zipEncodeLength(unsigned char *p, unsigned char encoding, un
} else if ((encoding) == ZIP_STR_14B) { \
(lensize) = 2; \
(len) = (((ptr)[0] & 0x3f) << 8) | (ptr)[1]; \
- } else if (encoding == ZIP_STR_32B) { \
+ } else if ((encoding) == ZIP_STR_32B) { \
(lensize) = 5; \
(len) = ((ptr)[1] << 24) | \
((ptr)[2] << 16) | \