diff options
author | Salvatore Sanfilippo <antirez@gmail.com> | 2018-01-17 10:45:11 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-17 10:45:11 +0100 |
commit | 81401878de92d15f0d3529144e27a1106ad489c2 (patch) | |
tree | a6527f3c8479fc810e3dd3ef446f83db39181778 | |
parent | b23927b240c68139700b7ac4bd4ce9370503aa60 (diff) | |
parent | 1e0e1685702d613fbad281c2db35540ad21d5887 (diff) | |
download | redis-81401878de92d15f0d3529144e27a1106ad489c2.tar.gz |
Merge pull request #4609 from Qinch/unstable
fix assert problem in ZIP_DECODE_PREVLENSIZE macro
-rw-r--r-- | src/ziplist.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ziplist.c b/src/ziplist.c index e407937ff..4d2ee821e 100644 --- a/src/ziplist.c +++ b/src/ziplist.c @@ -440,7 +440,7 @@ unsigned int zipStorePrevEntryLength(unsigned char *p, unsigned int len) { if ((prevlensize) == 1) { \ (prevlen) = (ptr)[0]; \ } else if ((prevlensize) == 5) { \ - assert(sizeof((prevlensize)) == 4); \ + assert(sizeof((prevlen)) == 4); \ memcpy(&(prevlen), ((char*)(ptr)) + 1, 4); \ memrev32ifbe(&prevlen); \ } \ |