From 91d71bfc796cb27cf71043df504e0d84d6e1d31d Mon Sep 17 00:00:00 2001 From: antirez Date: Fri, 20 Nov 2009 11:22:20 +0100 Subject: [PATCH] ZINCRBY return value fixed --- redis.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/redis.c b/redis.c index 8b2a7939..f3968b81 100644 --- a/redis.c +++ b/redis.c @@ -4278,9 +4278,9 @@ static void zaddGenericCommand(redisClient *c, robj *key, robj *ele, double scor incrRefCount(ele); /* added to skiplist */ server.dirty++; if (doincrement) - addReply(c,shared.cone); - else addReplyDouble(c,*score); + else + addReply(c,shared.cone); } else { dictEntry *de; double *oldscore; -- 2.45.2