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
90bf6313
Commit
90bf6313
authored
Jul 31, 2019
by
antirez
Browse files
Make EMBSTR case of #6261 more obvious.
parent
2f8a0749
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/object.c
View file @
90bf6313
...
...
@@ -472,7 +472,7 @@ robj *tryObjectEncoding(robj *o) {
o->encoding = OBJ_ENCODING_INT;
o->ptr = (void*) value;
return o;
}
else
{
} else
if (o->encoding == OBJ_ENCODING_EMBSTR)
{
decrRefCount(o);
return createStringObjectFromLongLongForValue(value);
}
...
...
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