From 1bd43564b2edda3358e1b0ad9b83b64dfb59c0d9 Mon Sep 17 00:00:00 2001 From: A404M Date: Sun, 23 Feb 2025 12:09:38 +0330 Subject: fix < >= operator bug --- src/runner/runner.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/runner') diff --git a/src/runner/runner.c b/src/runner/runner.c index a1a1f44..81154f5 100644 --- a/src/runner/runner.c +++ b/src/runner/runner.c @@ -19,10 +19,8 @@ #define doLogicalOperation(op0, op1, operator, originalType, _type) \ { \ - bool res = (bool)((_type)(originalType)(op0) \ - ->metadata \ - operator(_type)(originalType)(op1) \ - ->metadata); \ + bool res = (bool)(((_type)(originalType)(op0)->metadata) operator( \ + (_type)(originalType)(op1)->metadata)); \ astTreeDestroy(*(op0)); \ (op0)->metadata = (void *)(u64)res; \ (op0)->type = &AST_TREE_BOOL_TYPE; \ @@ -188,6 +186,7 @@ AstTree *runnerVariableGetValue(RunnerVariablePages *pages, } } + printError(variable->name_begin,variable->name_end,"Variable not found"); UNREACHABLE; } -- cgit v1.2.3