From: antirez Date: Thu, 9 Feb 2012 16:09:01 +0000 (+0100) Subject: ziplist.c endianess fixes, chapter 5. X-Git-Url: https://git.saurik.com/redis.git/commitdiff_plain/66d1b021ec0063c988e837a78356e72d8ed180ca ziplist.c endianess fixes, chapter 5. --- diff --git a/src/ziplist.c b/src/ziplist.c index de0ad82e..113e71d9 100644 --- a/src/ziplist.c +++ b/src/ziplist.c @@ -304,7 +304,7 @@ static int64_t zipLoadInteger(unsigned char *p, unsigned char encoding) { ret = i16; } else if (encoding == ZIP_INT_32B) { memcpy(&i32,p,sizeof(i32)); - memrev16ifbe(&i32); + memrev32ifbe(&i32); ret = i32; } else if (encoding == ZIP_INT_64B) { memcpy(&i64,p,sizeof(i64));