diff options
Diffstat (limited to 'cs_linkedlist.c')
-rw-r--r-- | cs_linkedlist.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cs_linkedlist.c b/cs_linkedlist.c index 1bbbb38..657aeb8 100644 --- a/cs_linkedlist.c +++ b/cs_linkedlist.c @@ -57,7 +57,7 @@ int main () { uint64_t steps = 20; // amount of nodes to create struct waster *wr1 = llist(steps); // Create the nodes - while(passstep != passes) { + while(passstep < passes+1) { uint64_t steps_count = 0; |