aboutsummaryrefslogtreecommitdiff
path: root/parse.c
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2024-08-23 11:38:54 -0400
committerBruce Hill <bruce@bruce-hill.com>2024-08-23 11:38:54 -0400
commitdceb9255736c69538293ee551272cda1b03a9fd3 (patch)
treefdb4e6947b80db01fa85b6de0c15670dddf83c52 /parse.c
parentad51b208b4924d04f1d6a804178a67994b4f9e59 (diff)
Bugfix for parsing ints
Diffstat (limited to 'parse.c')
-rw-r--r--parse.c2
1 files changed, 1 insertions, 1 deletions
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);
}