mirror of
https://github.com/redis/redis.git
synced 2026-04-21 03:01:35 -04:00
Make EMBSTR case of #6261 more obvious.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user