Commit 91d71bfc authored by antirez's avatar antirez
Browse files

ZINCRBY return value fixed

parent 7db723ad
......@@ -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;
......
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