From 734c30391d96c4cb74e328f94b05b33b4e2db98a Mon Sep 17 00:00:00 2001 From: David Phillips Date: Mon, 11 Mar 2019 15:54:42 +1300 Subject: Replace cumbersome arrays with bitmasks --- update.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'update.c') diff --git a/update.c b/update.c index 57c5dda..e2e4fbb 100644 --- a/update.c +++ b/update.c @@ -25,8 +25,8 @@ void update_not_row_col(struct cell (*b)[9][9]) DEBUG_LOG("Update: (%d,%d) has value %d\n", x, y, val); for (i = 0; i < 9; i++) { - (*b)[i][y].not[val - 1] = 1; - (*b)[x][i].not[val - 1] = 1; + CELL_SET_NOT((*b)[i][y].not, val); + CELL_SET_NOT((*b)[x][i].not, val); } } } -- cgit v1.1