mirror of
https://github.com/fluencelabs/redis
synced 2025-04-01 23:31:03 +00:00
Big endian fix. The bug was introduced because of a typo.
This commit is contained in:
parent
6f0e77ca19
commit
bd376d13f8
@ -240,7 +240,7 @@ static void zipPrevEncodeLengthForceLarge(unsigned char *p, unsigned int len) {
|
|||||||
} else if ((prevlensize) == 5) { \
|
} else if ((prevlensize) == 5) { \
|
||||||
assert(sizeof((prevlensize)) == 4); \
|
assert(sizeof((prevlensize)) == 4); \
|
||||||
memcpy(&(prevlen), ((char*)(ptr)) + 1, 4); \
|
memcpy(&(prevlen), ((char*)(ptr)) + 1, 4); \
|
||||||
memrev32ifbe(&len); \
|
memrev32ifbe(&prevlen); \
|
||||||
} \
|
} \
|
||||||
} while(0);
|
} while(0);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user