repositories
/
TD_C.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4593ff9
)
Fix a mismatching type comparison.
author
Jérôme Benoit
<jerome.benoit@piment-noir.org>
Tue, 28 Feb 2017 14:14:36 +0000
(15:14 +0100)
committer
Jérôme Benoit
<jerome.benoit@piment-noir.org>
Tue, 28 Feb 2017 14:14:36 +0000
(15:14 +0100)
Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
TP_8/exo3/exo3.c
patch
|
blob
|
blame
|
history
diff --git
a/TP_8/exo3/exo3.c
b/TP_8/exo3/exo3.c
index 18b065181cf5b65c6467b5e9c584ea65a5e2fe78..6c2d6c542e57002d476eb7763eae10a6ac55d9af 100644
(file)
--- 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;