Remove assert() from update()
This commit is contained in:
parent
f51e9a06b0
commit
1a84d900f2
3
sud.c
3
sud.c
@ -18,7 +18,6 @@
|
||||
|
||||
#include "sud.h"
|
||||
|
||||
#include <assert.h>
|
||||
#include <stdio.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)
|
||||
{
|
||||
unsigned tr, tc;
|
||||
assert(val < NDIGITS);
|
||||
|
||||
const uint16_t clearmask = ~(1 << val);
|
||||
|
||||
/* Update possible values of cells in same column. */
|
||||
|
Loading…
x
Reference in New Issue
Block a user