use signed int to make pedantic gcc happy

This commit is contained in:
neingeist 2013-12-08 22:55:49 +01:00
parent 065204dc85
commit 89978e5097

View file

@ -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;
} }