Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
e598d9b5
Unverified
Commit
e598d9b5
authored
May 04, 2020
by
Deliang Yang
Committed by
GitHub
May 04, 2020
Browse files
reformat code
parent
365316aa
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/ziplist.c
View file @
e598d9b5
...
@@ -440,7 +440,7 @@ unsigned int zipStorePrevEntryLength(unsigned char *p, unsigned int len) {
...
@@ -440,7 +440,7 @@ unsigned int zipStorePrevEntryLength(unsigned char *p, unsigned int len) {
if ((prevlensize) == 1) { \
if ((prevlensize) == 1) { \
(prevlen) = (ptr)[0]; \
(prevlen) = (ptr)[0]; \
} else if ((prevlensize) == 5) { \
} else if ((prevlensize) == 5) { \
assert(sizeof((prevlen)) == 4); \
assert(sizeof((prevlen)) == 4);
\
memcpy(&(prevlen), ((char*)(ptr)) + 1, 4); \
memcpy(&(prevlen), ((char*)(ptr)) + 1, 4); \
memrev32ifbe(&prevlen); \
memrev32ifbe(&prevlen); \
} \
} \
...
...
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