diff options
author | antirez <antirez@gmail.com> | 2015-02-03 15:42:56 +0100 |
---|---|---|
committer | antirez <antirez@gmail.com> | 2015-02-03 15:42:56 +0100 |
commit | 719c6c2b96bdb9638dc3eae66f3568608181add6 (patch) | |
tree | 94f23fbbe081b7169dcfe272b6dd5639c47ed628 | |
parent | 96abf659008e7e8e544e446bbfac922c059a5650 (diff) | |
download | redis-719c6c2b96bdb9638dc3eae66f3568608181add6.tar.gz |
Suppress sign warning in sort.c.
Related to #2346.
-rw-r--r-- | src/sort.c | 2 |
1 files changed, 1 insertions, 1 deletions
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)) { |