Remove assert() from update()

This commit is contained in:
Camden Dixie O'Brien 2022-11-24 01:35:44 +00:00
parent f51e9a06b0
commit 1a84d900f2

3
sud.c
View File

@ -18,7 +18,6 @@
#include "sud.h" #include "sud.h"
#include <assert.h>
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
@ -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) enum update_res update(struct sudoku *sud, unsigned r, unsigned c, unsigned val)
{ {
unsigned tr, tc; unsigned tr, tc;
assert(val < NDIGITS);
const uint16_t clearmask = ~(1 << val); const uint16_t clearmask = ~(1 << val);
/* Update possible values of cells in same column. */ /* Update possible values of cells in same column. */