diff options
author | antirez <antirez@gmail.com> | 2012-01-31 10:35:52 +0100 |
---|---|---|
committer | antirez <antirez@gmail.com> | 2012-01-31 10:35:52 +0100 |
commit | 3c08fdae712e79cc7a678a2969c2ac15c5ff8865 (patch) | |
tree | a4d4866106e5dae53562227f291a592b97181c32 /src/adlist.c | |
parent | fc4ed4299bfad004a3230bf6af0de89281bb2d44 (diff) | |
download | redis-3c08fdae712e79cc7a678a2969c2ac15c5ff8865.tar.gz |
64 bit instances are no longer limited to have at max 2^32-1 elements in lists.
Diffstat (limited to 'src/adlist.c')
-rw-r--r-- | src/adlist.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/adlist.c b/src/adlist.c index 015012f5c..51ba03bd5 100644 --- a/src/adlist.c +++ b/src/adlist.c @@ -57,7 +57,7 @@ list *listCreate(void) * This function can't fail. */ void listRelease(list *list) { - unsigned int len; + unsigned long len; listNode *current, *next; current = list->head; @@ -310,7 +310,7 @@ listNode *listSearchKey(list *list, void *key) * and so on. Negative integers are used in order to count * from the tail, -1 is the last element, -2 the penultimante * and so on. If the index is out of range NULL is returned. */ -listNode *listIndex(list *list, int index) { +listNode *listIndex(list *list, long index) { listNode *n; if (index < 0) { |