diff options
author | A404M <ahmadmahmoudiprogrammer@gmail.com> | 2025-06-03 21:32:03 +0330 |
---|---|---|
committer | A404M <ahmadmahmoudiprogrammer@gmail.com> | 2025-06-03 21:32:03 +0330 |
commit | a6abc8734563ba8a1920c760dcb3c0147cb458b9 (patch) | |
tree | e2aa1f627b6952793f17f6ff3460070b37d99daf /src/runner | |
parent | 7296f70ccb33fa7a2b34b0a0332bac7b93d21e0d (diff) |
fixing some bugs
Diffstat (limited to 'src/runner')
-rw-r--r-- | src/runner/runner.c | 5 |
1 files changed, 3 insertions, 2 deletions
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); |