From 89978e5097c5b70fdf9b6d83315c4cba396fa4b1 Mon Sep 17 00:00:00 2001 From: neingeist Date: Sun, 8 Dec 2013 22:55:49 +0100 Subject: [PATCH] use signed int to make pedantic gcc happy --- linked-list.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }