Commit dc05abde authored by antirez's avatar antirez
Browse files

better use of encoding inforamtion in dictEncObjKeyCompare

parent 1b677732
...@@ -1104,8 +1104,8 @@ static int dictEncObjKeyCompare(void *privdata, const void *key1, ...@@ -1104,8 +1104,8 @@ static int dictEncObjKeyCompare(void *privdata, const void *key1,
int cmp; int cmp;
if (o1->encoding == REDIS_ENCODING_INT && if (o1->encoding == REDIS_ENCODING_INT &&
o2->encoding == REDIS_ENCODING_INT && o2->encoding == REDIS_ENCODING_INT)
o1->ptr == o2->ptr) return 1; return o1->ptr == o2->ptr;
o1 = getDecodedObject(o1); o1 = getDecodedObject(o1);
o2 = getDecodedObject(o2); o2 = getDecodedObject(o2);
......
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