Skip to content

Commit fa9368f

Browse files
committed
fixed map error handling
1 parent bf16146 commit fa9368f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/parser.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ inline t_info bsq_read_info(t_reader *reader)
4444
info.height = 0;
4545
while (buff[j] && buff[j] >= '0' && buff[j] <= '9' && j < i)
4646
info.height = info.height * 10 + (buff[j++] - '0');
47-
BSQ_ASSERT(i == j, "wrong format -42\n");
48-
BSQ_ASSERT(c == '\n', "wrong format -42\n");
47+
BSQ_ASSERT(i == j, PARSE_ERR);
48+
BSQ_ASSERT(c == '\n', PARSE_ERR);
4949
bsq_validate_info(&info);
5050
return (info);
5151
}

0 commit comments

Comments
 (0)