From a6abc8734563ba8a1920c760dcb3c0147cb458b9 Mon Sep 17 00:00:00 2001 From: A404M Date: Tue, 3 Jun 2025 21:32:03 +0330 Subject: fixing some bugs --- src/runner/runner.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/runner') diff --git a/src/runner/runner.c b/src/runner/runner.c index 23b6d7e..012c84a 100644 --- a/src/runner/runner.c +++ b/src/runner/runner.c @@ -303,8 +303,8 @@ AstTree *runAstTreeBuiltin(AstTree *tree, AstTreeScope *scope, default: UNREACHABLE; } - return newAstTree(AST_TREE_TOKEN_RAW_VALUE, ret, copyAstTree(left->type), NULL, - NULL); + return newAstTree(AST_TREE_TOKEN_RAW_VALUE, ret, copyAstTree(left->type), + NULL, NULL); } case AST_TREE_TOKEN_BUILTIN_ADD: { AstTree *left = arguments[0]; @@ -1473,6 +1473,7 @@ AstTree *runExpression(AstTree *expr, AstTreeScope *scope, bool *shouldRet, astTreeDelete(l); return copyAstTree(left->value); } else if (l->token == AST_TREE_TOKEN_RAW_VALUE) { + UNREACHABLE; AstTree *right = runExpression(metadata->right, scope, shouldRet, false, isComptime, breakCount, shouldContinue, false); -- cgit v1.2.3