summaryrefslogtreecommitdiff
path: root/cs_linkedlist.c
diff options
context:
space:
mode:
authoroskar <[email protected]>2024-05-11 14:29:07 +0200
committeroskar <[email protected]>2024-05-11 14:29:07 +0200
commit12e93b4847676ea40ae8a14be639b619449ac52c (patch)
tree18a4a67400d97c99597e14215d76abcfe14a325f /cs_linkedlist.c
parent96651caeeceeefd90a9449aece0e23599370fe9f (diff)
all linked lists done, i might do some more improvements and code cleanup but the main stuff is done
Diffstat (limited to 'cs_linkedlist.c')
-rw-r--r--cs_linkedlist.c2
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;