From c64fa0d256ffdba8052580001a34da13157672fd Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Fri, 16 Jan 2026 18:22:00 -0500 Subject: Fix everything up real good --- src/parse/numbers.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/parse') diff --git a/src/parse/numbers.c b/src/parse/numbers.c index 5aa5c287..b992b133 100644 --- a/src/parse/numbers.c +++ b/src/parse/numbers.c @@ -100,5 +100,9 @@ ast_t *parse_num(parse_ctx_t *ctx, const char *pos) { if (!Real$is_zero(real)) real = Real$times(Real$divided_by(real, Real$from_float64(360.)), Real$tau); } + if (Real$tag(real) == REAL_TAG_SYMBOLIC && REAL_SYMBOLIC(real)->op == SYM_INVALID) { + parser_err(ctx, start, pos, "Failed to convert this to a real number"); + } + return NewAST(ctx->file, start, pos, Number, .n = real); } -- cgit v1.2.3