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; }