summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorubuntu <avi@redislabs.com>2015-09-07 11:20:52 +0000
committerantirez <antirez@gmail.com>2015-09-07 13:25:30 +0200
commit0513de624c8d663fc5522e47b2a8a5ddfd741843 (patch)
tree2c75e9a9829da9b7e803c9e2d1eda7421bd98636
parent49f2f691cbf62aa77ebeed1edd8b008cac622e5c (diff)
downloadredis-0513de624c8d663fc5522e47b2a8a5ddfd741843.tar.gz
SCAN iter parsing changed from atoi to chartoull
-rw-r--r--src/redis-cli.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/redis-cli.c b/src/redis-cli.c
index 068c2368a..825162b81 100644
--- a/src/redis-cli.c
+++ b/src/redis-cli.c
@@ -1582,7 +1582,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;
}