From 2bc938b62a27c52666c2ac6787c468b66aa21553 Mon Sep 17 00:00:00 2001 From: A404M Date: Sun, 1 Jun 2025 01:05:15 +0330 Subject: add println fix @neg type --- src/runner/runner.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/runner/runner.c') diff --git a/src/runner/runner.c b/src/runner/runner.c index d493236..23b6d7e 100644 --- a/src/runner/runner.c +++ b/src/runner/runner.c @@ -303,7 +303,7 @@ AstTree *runAstTreeBuiltin(AstTree *tree, AstTreeScope *scope, default: UNREACHABLE; } - return newAstTree(AST_TREE_TOKEN_RAW_VALUE, ret, copyAstTree(left), NULL, + return newAstTree(AST_TREE_TOKEN_RAW_VALUE, ret, copyAstTree(left->type), NULL, NULL); } case AST_TREE_TOKEN_BUILTIN_ADD: { @@ -2345,7 +2345,7 @@ AstTree *castTo(AstTree *tree, AstTree *to) { case AST_TREE_TOKEN_TYPE_C_LIBRARY: case AST_TREE_TOKEN_TYPE_C_FUNCTION: } - printLog("%s", AST_TREE_TOKEN_STRINGS[tree->token]); + printLog("%s", AST_TREE_TOKEN_STRINGS[tree->type->token]); UNREACHABLE; } -- cgit v1.2.3