summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2015-02-04 11:26:31 +0100
committerantirez <antirez@gmail.com>2015-02-04 11:26:31 +0100
commit78dd2b313eb7b398bac64543390dcfd70e6fd148 (patch)
tree7c4863bf658ca935dd2557c5e2f7eebfbbb9322d
parentc5dd686ecb90d8d969f521d02caade4a3fa6d56e (diff)
parent719c6c2b96bdb9638dc3eae66f3568608181add6 (diff)
downloadredis-78dd2b313eb7b398bac64543390dcfd70e6fd148.tar.gz
Merge branch 'unstable' of github.com:/antirez/redis into unstable
-rw-r--r--src/sort.c2
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)) {