repositories
/
TP_POO.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
22758ba
)
TP2: coding style fixlet.
author
Jérôme Benoit
<jerome.benoit@piment-noir.org>
Sun, 4 Mar 2018 18:32:27 +0000
(19:32 +0100)
committer
Jérôme Benoit
<jerome.benoit@piment-noir.org>
Sun, 4 Mar 2018 18:32:27 +0000
(19:32 +0100)
Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
TP2/Liste.java
patch
|
blob
|
blame
|
history
diff --git
a/TP2/Liste.java
b/TP2/Liste.java
index ceab4993c1f80e4da6edc998b99c0d10ffe1a6dc..344a2d3325f134a76399c72892b4dbc996768f18 100644
(file)
--- a/
TP2/Liste.java
+++ b/
TP2/Liste.java
@@
-150,7
+150,7
@@
public class Liste extends Structure {
IntNode nodeCursor = headNode;
int i = 0;
// Go to the node at the nElements place
- while (i < nElements -1 && nodeCursor.getNext() != null && nElements > 1) {
+ while (i < nElements -
1 && nodeCursor.getNext() != null && nElements > 1) {
nodeCursor = nodeCursor.getNext();
i++;
}