commit 1cd878bb8ca16e2a30f27647d87131880103138b
parent 9be86736ebd5fc0c398ab451ed8ae7f0d164762f
Author: bsandro <[email protected]>
Date: Sat, 11 Dec 2021 16:25:51 +0200
(Once again) fixed isdigit(3) usage for NetBSD :)
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/day11/puzzle.c b/day11/puzzle.c
@@ -42,7 +42,7 @@ void puzzle(const char *filename, long long *result1, long long *result2) {
size_t len = strlen(buf);
assert(len >= GRID_WIDTH);
for (int i = 0; i < GRID_WIDTH; ++i) {
- assert(isdigit(buf[i]));
+ assert(isdigit((int)buf[i]));
octopuses[line_num][i] = buf[i] - '0';
}
++line_num;