Index: aoc2024.c ================================================================== --- aoc2024.c +++ aoc2024.c @@ -48,11 +48,11 @@ if (data[rcmap(size, row-1, col+1)] == 'S') tmp |= 8; if (data[rcmap(size, row+1, col+1)] == 'M') tmp |= 1; if (data[rcmap(size, row+1, col+1)] == 'S') tmp |= 2; if (data[rcmap(size, row+1, col-1)] == 'M') tmp |= 4; if (data[rcmap(size, row+1, col-1)] == 'S') tmp |= 8; - return tmp == 15; + return (tmp == 15); } void aoc202404(char *data, size_t len) { (void)len; // unused argument // assume data is well-formatted and has the same number of rows and columns