summaryrefslogtreecommitdiff
path: root/src/runner
diff options
context:
space:
mode:
authorA404M <ahmadmahmoudiprogrammer@gmail.com>2025-04-09 11:48:26 +0330
committerA404M <ahmadmahmoudiprogrammer@gmail.com>2025-04-09 11:48:26 +0330
commitf4d180a8369d3a09722feb822b774366910cbc5d (patch)
tree0db3b290d48a82f6fa012055829a072386b52acb /src/runner
parent44420249b454a4d1b1322c22a344a8b1b60fa3bd (diff)
add better support for debugging compiler
Diffstat (limited to 'src/runner')
-rw-r--r--src/runner/runner.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/runner/runner.c b/src/runner/runner.c
index 792ee83..140e3f8 100644
--- a/src/runner/runner.c
+++ b/src/runner/runner.c
@@ -99,7 +99,7 @@ AstTree *runExpression(AstTree *expr, bool *shouldRet, bool isLeft) {
case AST_TREE_TOKEN_KEYWORD_PUTC: {
AstTreeSingleChild *metadata = expr->metadata;
AstTree *tree = runExpression(metadata, shouldRet, false);
- printf("%c", (u8)*(AstTreeInt *)tree->metadata);
+ putchar((u8) * (AstTreeInt *)tree->metadata);
astTreeDelete(tree);
return &AST_TREE_VOID_VALUE;
}