X-Git-Url: https://git.saurik.com/redis.git/blobdiff_plain/96ffb2fe97c3e77879e7a4f6f7457397a18bf233..dfc25454701638d39bc75fbc3f9c55619b503bd0:/src/adlist.c diff --git a/src/adlist.c b/src/adlist.c index 015012f5..51ba03bd 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) {