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:38 +0200
commit3ff2d65ffa818291c342163437aa815192826aa5 (patch)
tree1071592ca494c5cf5aa25140fb49dc14dcf065a3
parent194b7e218638c24850ee1d6c478e8528cf7599d7 (diff)
downloadredis-3ff2d65ffa818291c342163437aa815192826aa5.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 131d3bf68..4dabbacce 100644
--- a/src/redis-cli.c
+++ b/src/redis-cli.c
@@ -1566,7 +1566,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;
}