diff options
author | antirez <antirez@gmail.com> | 2012-03-23 12:42:20 +0100 |
---|---|---|
committer | antirez <antirez@gmail.com> | 2012-03-23 12:42:20 +0100 |
commit | bd376d13f820b168954ac6683b5197a4ed72f03b (patch) | |
tree | 3c198b7c0b5e3b9a1969a24296309e537efca1a1 /src/ziplist.c | |
parent | 6f0e77ca19278fd37d19c28156d8704754498680 (diff) | |
download | redis-bd376d13f820b168954ac6683b5197a4ed72f03b.tar.gz |
Big endian fix. The bug was introduced because of a typo.
Diffstat (limited to 'src/ziplist.c')
-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 5962510d5..b214b2da6 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); |