diff --git a/linked-list.c b/linked-list.c index 0b8b7fe..f477e7c 100644 --- a/linked-list.c +++ b/linked-list.c @@ -109,7 +109,7 @@ void list_revert(list_t *list) { list->head = reverted.head; } -list_node_t* list_elementat(list_t *list, unsigned int i) { +list_node_t* list_elementat(list_t *list, int i) { if (list_empty(list) || i > list_length(list)-1) { return NULL; }