Commit 90bf6313 authored by antirez's avatar antirez
Browse files

Make EMBSTR case of #6261 more obvious.

parent 2f8a0749
...@@ -472,7 +472,7 @@ robj *tryObjectEncoding(robj *o) { ...@@ -472,7 +472,7 @@ robj *tryObjectEncoding(robj *o) {
o->encoding = OBJ_ENCODING_INT; o->encoding = OBJ_ENCODING_INT;
o->ptr = (void*) value; o->ptr = (void*) value;
return o; return o;
} else { } else if (o->encoding == OBJ_ENCODING_EMBSTR) {
decrRefCount(o); decrRefCount(o);
return createStringObjectFromLongLongForValue(value); return createStringObjectFromLongLongForValue(value);
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment