提交 719c6c2b 编写于 作者: A antirez

Suppress sign warning in sort.c.

Related to #2346.
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册