From dc05abde89dc5e06748abad7e6b720b5f3506e58 Mon Sep 17 00:00:00 2001 From: antirez Date: Tue, 11 May 2010 11:02:24 +0200 Subject: [PATCH] better use of encoding inforamtion in dictEncObjKeyCompare --- redis.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/redis.c b/redis.c index 4f3773d06..4ffe7a09e 100644 --- a/redis.c +++ b/redis.c @@ -1104,8 +1104,8 @@ static int dictEncObjKeyCompare(void *privdata, const void *key1, int cmp; if (o1->encoding == REDIS_ENCODING_INT && - o2->encoding == REDIS_ENCODING_INT && - o1->ptr == o2->ptr) return 1; + o2->encoding == REDIS_ENCODING_INT) + return o1->ptr == o2->ptr; o1 = getDecodedObject(o1); o2 = getDecodedObject(o2); -- GitLab