X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=TP_8%2Fexo3%2Fexo3.c;fp=TP_8%2Fexo3%2Fexo3.c;h=6c2d6c542e57002d476eb7763eae10a6ac55d9af;hb=913777a2bfd77759b7da95a3b5ab07b5d6cdf8fc;hp=18b065181cf5b65c6467b5e9c584ea65a5e2fe78;hpb=4593ff984d50f6eb003613823c625398b6406390;p=TD_C.git 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;