aboutsummaryrefslogtreecommitdiff
path: root/src/runner
diff options
context:
space:
mode:
authorA404M <ahmadmahmoudiprogrammer@gmail.com>2025-06-01 01:05:15 +0330
committerA404M <ahmadmahmoudiprogrammer@gmail.com>2025-06-01 01:05:15 +0330
commit2bc938b62a27c52666c2ac6787c468b66aa21553 (patch)
tree0782dc583f529ce512ad19c8aab9f6ed00f73e04 /src/runner
parent6f89805452feaa239ed6d662762ac7e17b7a7287 (diff)
add println
fix @neg type
Diffstat (limited to 'src/runner')
-rw-r--r--src/runner/runner.c4
1 files changed, 2 insertions, 2 deletions
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;
}