From dceb9255736c69538293ee551272cda1b03a9fd3 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Fri, 23 Aug 2024 11:38:54 -0400 Subject: Bugfix for parsing ints --- parse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'parse.c') diff --git a/parse.c b/parse.c index 9d80cccb..95fc09ef 100644 --- a/parse.c +++ b/parse.c @@ -1894,7 +1894,7 @@ ast_t *parse_enum_def(parse_ctx_t *ctx, const char *pos) { spaces(&pos); if (match(&pos, "=")) { ast_t *val = expect(ctx, tag_start, &pos, parse_int, "I expected an integer literal after this '='"); - Int_t i = Int$from_text(Match(val, Int)->str); + Int_t i = Int$from_text(Match(val, Int)->str, NULL); // TODO check for overflow next_value = (i.small >> 2); } -- cgit v1.2.3