day 23: typos

This commit is contained in:
2022-10-24 20:14:53 +02:00
parent 6de646f0d1
commit 9bd03e0650
2 changed files with 3 additions and 4 deletions

View File

@@ -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;
}