From 719c6c2b96bdb9638dc3eae66f3568608181add6 Mon Sep 17 00:00:00 2001 From: antirez Date: Tue, 3 Feb 2015 15:42:56 +0100 Subject: [PATCH] Suppress sign warning in sort.c. Related to #2346. --- src/sort.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sort.c b/src/sort.c index 97500df45..c1b571313 100644 --- a/src/sort.c +++ b/src/sort.c @@ -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)) {