aboutsummaryrefslogtreecommitdiff
path: root/typecheck.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 /typecheck.c
parentad51b208b4924d04f1d6a804178a67994b4f9e59 (diff)
Bugfix for parsing ints
Diffstat (limited to 'typecheck.c')
-rw-r--r--typecheck.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/typecheck.c b/typecheck.c
index d8e0f6e1..bb40666f 100644
--- a/typecheck.c
+++ b/typecheck.c
@@ -1367,7 +1367,7 @@ bool is_constant(env_t *env, ast_t *ast)
case Int: {
auto info = Match(ast, Int);
if (info->bits == IBITS_UNSPECIFIED) {
- Int_t int_val = Int$from_text(info->str);
+ Int_t int_val = Int$from_text(info->str, NULL);
mpz_t i;
mpz_init_set_int(i, int_val);
return (mpz_cmpabs_ui(i, BIGGEST_SMALL_INT) <= 0);