From 913777a2bfd77759b7da95a3b5ab07b5d6cdf8fc Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Tue, 28 Feb 2017 15:14:36 +0100 Subject: [PATCH] Fix a mismatching type comparison. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- TP_8/exo3/exo3.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TP_8/exo3/exo3.c b/TP_8/exo3/exo3.c index 18b0651..6c2d6c5 100644 --- a/TP_8/exo3/exo3.c +++ b/TP_8/exo3/exo3.c @@ -45,7 +45,7 @@ unsigned list_count(link_t* head) { int list_get(link_t* head, unsigned index) { if (index < list_count(head)) { - for (int i = 0; i < index; i++) { + for (unsigned i = 0; i < index; i++) { head = head->next; } return head->value; -- 2.34.1