From 9bd03e06508558459fb9e714b3f2fea160170bd1 Mon Sep 17 00:00:00 2001 From: Bruno Raoult Date: Mon, 24 Oct 2022 20:14:53 +0200 Subject: [PATCH] day 23: typos --- 2020/day23/aoc-c.c | 5 ++--- README.md | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/2020/day23/aoc-c.c b/2020/day23/aoc-c.c index 42b141e..c28f7cf 100644 --- a/2020/day23/aoc-c.c +++ b/2020/day23/aoc-c.c @@ -16,11 +16,11 @@ * calculations */ -struct list_head *curcup; /* curcup cup */ +struct list_head *curcup; /* current cup */ struct list_head *cups; /* the cups cups */ int lastnum; /* last cup number */ -#define CUR_CUP (&*curcup) +#define CUR_CUP (&*curcup) #define NUM(pcup) ((pcup) - cups) static __always_inline void step() @@ -39,7 +39,6 @@ static __always_inline void step() dest = &cups[lastnum]; } while (NUM(dest) == num[0] || NUM(dest) == num[1] || NUM(dest) == num[2]); - //list_bulk_move_tail(dest->next, first, last); list_bulk_move(dest, first, last); curcup = CUR_CUP->next; } diff --git a/README.md b/README.md index b4577cb..fe60798 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ - `C`: Days 1-9 #### Advent of Code 2020 - - `C`: Days 1-18, 24-25 + - `C`: Days 1-18, 23-25 - `Bash`: All (days 1-25) - `Cobol`: Day 1 (!!)