From 1a84d900f2ce3613b4ec9717882a0fe14c44c8b3 Mon Sep 17 00:00:00 2001 From: Camden Dixie O'Brien Date: Thu, 24 Nov 2022 01:35:44 +0000 Subject: [PATCH] Remove assert() from update() --- sud.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/sud.c b/sud.c index b5ff67e..4d84a22 100644 --- a/sud.c +++ b/sud.c @@ -18,7 +18,6 @@ #include "sud.h" -#include #include #include @@ -53,8 +52,6 @@ bool load(struct sudoku *sud, const char *ptr) enum update_res update(struct sudoku *sud, unsigned r, unsigned c, unsigned val) { unsigned tr, tc; - assert(val < NDIGITS); - const uint16_t clearmask = ~(1 << val); /* Update possible values of cells in same column. */