From 7c64e8896393f2fe4859a4a039e95c6ff0047fce Mon Sep 17 00:00:00 2001 From: Justin Carvalho Date: Mon, 19 Dec 2016 17:37:41 -0500 Subject: Fix missing brackets around encoding variable in ZIP_DECODE_LENGTH macro --- src/ziplist.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ziplist.c') 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) | \ -- cgit v1.2.1