mirror of
https://codeberg.org/redict/redict.git
synced 2025-01-23 00:28:26 -05:00
Make EMBSTR case of #6261 more obvious.
This commit is contained in:
parent
f899c31fbc
commit
2a8a63af44
@ -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);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user