Skip to content

Commit

Permalink
another try
Browse files Browse the repository at this point in the history
  • Loading branch information
TheGAzed committed Jun 23, 2024
1 parent f09e136 commit 3fd66c2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions program/source/structures/concrete/board.c
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,10 @@ KGrid _init_grid(FILE * kakuro_file) {
KGrid g = { 0 };
assert(fread(&(g.size[ROW]), sizeof(ksize_t), 1, kakuro_file));
assert(fread(&(g.size[COLUMN]), sizeof(ksize_t), 1, kakuro_file));
printf("%02hhd %02hhd\n", g.size[ROW], g.size[COLUMN]);
fflush(stdout);
if (ferror(kakuro_file)) {
perror("Error during fread");
}

g.count = g.size[ROW] * g.size[COLUMN];

assert((g.grids[ROW] = malloc(g.size[ROW] * sizeof(lookup_t*))) && "ALLOCATION TO ROW ARRAY FAILED");
Expand Down

0 comments on commit 3fd66c2

Please sign in to comment.