mirror of
https://github.com/fluencelabs/redis
synced 2025-03-19 09:00:51 +00:00
Merge pull request #3696 from jstncarvalho/FixMissingBrackets_ZIP_DECODE_LENGTH
Fix missing brackets around encoding variable in ZIP_DECODE_LENGTH macro
This commit is contained in:
commit
619317da6f
@ -249,7 +249,7 @@ static unsigned int zipEncodeLength(unsigned char *p, unsigned char encoding, un
|
|||||||
} else if ((encoding) == ZIP_STR_14B) { \
|
} else if ((encoding) == ZIP_STR_14B) { \
|
||||||
(lensize) = 2; \
|
(lensize) = 2; \
|
||||||
(len) = (((ptr)[0] & 0x3f) << 8) | (ptr)[1]; \
|
(len) = (((ptr)[0] & 0x3f) << 8) | (ptr)[1]; \
|
||||||
} else if (encoding == ZIP_STR_32B) { \
|
} else if ((encoding) == ZIP_STR_32B) { \
|
||||||
(lensize) = 5; \
|
(lensize) = 5; \
|
||||||
(len) = ((ptr)[1] << 24) | \
|
(len) = ((ptr)[1] << 24) | \
|
||||||
((ptr)[2] << 16) | \
|
((ptr)[2] << 16) | \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user