mirror of
https://github.com/fluencelabs/redis
synced 2025-06-12 00:31:21 +00:00
64 bit instances are no longer limited to have at max 2^32-1 elements in lists.
This commit is contained in:
@ -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) {
|
||||
|
Reference in New Issue
Block a user