use signed int to make pedantic gcc happy

master
neingeist 11 years ago
parent 065204dc85
commit 89978e5097

@ -109,7 +109,7 @@ void list_revert(list_t *list) {
list->head = reverted.head; 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) { if (list_empty(list) || i > list_length(list)-1) {
return NULL; return NULL;
} }

Loading…
Cancel
Save