Make EMBSTR case of #6261 more obvious.

This commit is contained in:
antirez 2019-07-31 12:03:10 +02:00
parent f899c31fbc
commit 2a8a63af44

View File

@ -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);
}