Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
66d1b021
Commit
66d1b021
authored
Feb 09, 2012
by
antirez
Browse files
ziplist.c endianess fixes, chapter 5.
parent
cab1105c
Changes
1
Show whitespace changes
Inline
Side-by-side
src/ziplist.c
View file @
66d1b021
...
...
@@ -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
));
memrev
16
ifbe
(
&
i32
);
memrev
32
ifbe
(
&
i32
);
ret
=
i32
;
}
else
if
(
encoding
==
ZIP_INT_64B
)
{
memcpy
(
&
i64
,
p
,
sizeof
(
i64
));
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment