Commit 719c6c2b authored by antirez's avatar antirez
Browse files

Suppress sign warning in sort.c.

Related to #2346.
parent 96abf659
......@@ -354,7 +354,7 @@ void sortCommand(redisClient *c) {
listTypeIterator *li;
listTypeEntry entry;
li = listTypeInitIterator(sortval,
desc ? listTypeLength(sortval) - start - 1 : start,
desc ? (long)(listTypeLength(sortval) - start - 1) : start,
desc ? REDIS_HEAD : REDIS_TAIL);
while(j < vectorlen && listTypeNext(li,&entry)) {
......
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