64 bit instances are no longer limited to have at max 2^32-1 elements in lists.

This commit is contained in:
antirez
2012-01-31 10:35:52 +01:00
parent fc4ed4299b
commit 3c08fdae71
5 changed files with 12 additions and 18 deletions

View File

@ -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) {