From f5612e38183dc20d18f207f8ab055574a4d93ad0 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Sun, 21 Sep 2025 15:14:37 -0400 Subject: Bugfixes for anonymous enums, code cleanup to remove type_to_string(), and changed it so anonymous enums show up in doctests with their full type instead of `enum$20` --- src/compile/comparisons.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/compile/comparisons.c') diff --git a/src/compile/comparisons.c b/src/compile/comparisons.c index d7531261..0f9a7ddd 100644 --- a/src/compile/comparisons.c +++ b/src/compile/comparisons.c @@ -38,7 +38,7 @@ Text_t compile_comparison(env_t *env, ast_t *ast) { } else if (can_compile_to_type(env, binop.lhs, rhs_t)) { operand_t = rhs_t; } else { - code_err(ast, "I can't do comparisons between ", type_to_str(lhs_t), " and ", type_to_str(rhs_t)); + code_err(ast, "I can't do comparisons between ", type_to_text(lhs_t), " and ", type_to_text(rhs_t)); } Text_t lhs, rhs; @@ -78,7 +78,7 @@ Text_t compile_comparison(env_t *env, ast_t *ast) { } else if (can_compile_to_type(env, cmp.lhs, rhs_t)) { operand_t = rhs_t; } else { - code_err(ast, "I can't do comparisons between ", type_to_str(lhs_t), " and ", type_to_str(rhs_t)); + code_err(ast, "I can't do comparisons between ", type_to_text(lhs_t), " and ", type_to_text(rhs_t)); } Text_t lhs = compile_to_type(env, cmp.lhs, operand_t); -- cgit v1.2.3