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/pointers.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/compile/pointers.c') diff --git a/src/compile/pointers.c b/src/compile/pointers.c index 644b3bc7..31687d78 100644 --- a/src/compile/pointers.c +++ b/src/compile/pointers.c @@ -27,7 +27,7 @@ Text_t compile_to_pointer_depth(env_t *env, ast_t *ast, int64_t target_depth, bo while (depth != target_depth) { if (depth < target_depth) { if (ast->tag == Var && target_depth == 1) val = Texts("(&", val, ")"); - else code_err(ast, "This should be a pointer, not ", type_to_str(get_type(env, ast))); + else code_err(ast, "This should be a pointer, not ", type_to_text(get_type(env, ast))); t = Type(PointerType, .pointed = t, .is_stack = true); ++depth; } else { -- cgit v1.2.3