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
c57d9146
"tests/vscode:/vscode.git/clone" did not exist on "aefbc23451ae8d0c7503f2c3cb014bfd5b07b4ed"
Commit
c57d9146
authored
May 04, 2020
by
Deliang Yang
Committed by
antirez
May 08, 2020
Browse files
reformat code
parent
3d3861dd
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/ziplist.c
View file @
c57d9146
...
@@ -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