From: antirez Date: Fri, 23 Mar 2012 11:42:20 +0000 (+0100) Subject: Big endian fix. The bug was introduced because of a typo. X-Git-Url: https://git.saurik.com/redis.git/commitdiff_plain/b64281cc0ed8543864030f4de577228b92b5c21b Big endian fix. The bug was introduced because of a typo. --- diff --git a/src/ziplist.c b/src/ziplist.c index 5962510d..b214b2da 100644 --- a/src/ziplist.c +++ b/src/ziplist.c @@ -240,7 +240,7 @@ static void zipPrevEncodeLengthForceLarge(unsigned char *p, unsigned int len) { } else if ((prevlensize) == 5) { \ assert(sizeof((prevlensize)) == 4); \ memcpy(&(prevlen), ((char*)(ptr)) + 1, 4); \ - memrev32ifbe(&len); \ + memrev32ifbe(&prevlen); \ } \ } while(0);