From 651741b5bd39046bfed0a1b905e78cfc9140ab82 Mon Sep 17 00:00:00 2001 From: ubuntu Date: Mon, 7 Sep 2015 11:20:52 +0000 Subject: [PATCH] SCAN iter parsing changed from atoi to chartoull --- src/redis-cli.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/redis-cli.c b/src/redis-cli.c index 183270db1..88f39a6e9 100644 --- a/src/redis-cli.c +++ b/src/redis-cli.c @@ -1584,7 +1584,7 @@ static redisReply *sendScan(unsigned long long *it) { assert(reply->element[1]->type == REDIS_REPLY_ARRAY); /* Update iterator */ - *it = atoi(reply->element[0]->str); + *it = strtoull(reply->element[0]->str, NULL, 10); return reply; }