X-Git-Url: https://git.saurik.com/redis.git/blobdiff_plain/96ffb2fe97c3e77879e7a4f6f7457397a18bf233..8562798308391d489016b3995d438b6187b5980a:/src/adlist.h?ds=sidebyside diff --git a/src/adlist.h b/src/adlist.h index a1209f62..36dba1ff 100644 --- a/src/adlist.h +++ b/src/adlist.h @@ -50,7 +50,7 @@ typedef struct list { void *(*dup)(void *ptr); void (*free)(void *ptr); int (*match)(void *ptr, void *key); - unsigned int len; + unsigned long len; } list; /* Functions implemented as macros */ @@ -81,7 +81,7 @@ listNode *listNext(listIter *iter); void listReleaseIterator(listIter *iter); list *listDup(list *orig); listNode *listSearchKey(list *list, void *key); -listNode *listIndex(list *list, int index); +listNode *listIndex(list *list, long index); void listRewind(list *list, listIter *li); void listRewindTail(list *list, listIter *li);