summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSalvatore Sanfilippo <antirez@gmail.com>2016-12-20 13:32:54 +0100
committerGitHub <noreply@github.com>2016-12-20 13:32:54 +0100
commit619317da6f115d600c365e6cacd5ece1da97308f (patch)
treeb0a1da27a189be2980c3d94d0ce889fefc3cddbb
parent0f72257049f76c8371e2dc18336a4d1015d06a99 (diff)
parent7c64e8896393f2fe4859a4a039e95c6ff0047fce (diff)
downloadredis-619317da6f115d600c365e6cacd5ece1da97308f.tar.gz
Merge pull request #3696 from jstncarvalho/FixMissingBrackets_ZIP_DECODE_LENGTH
Fix missing brackets around encoding variable in ZIP_DECODE_LENGTH macro
-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) | \