提交 b64281cc 编写于 作者: A antirez

Big endian fix. The bug was introduced because of a typo.

上级 52192552
...@@ -240,7 +240,7 @@ static void zipPrevEncodeLengthForceLarge(unsigned char *p, unsigned int len) { ...@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册