summaryrefslogtreecommitdiff
path: root/src/runner/runner.c
diff options
context:
space:
mode:
authorA404M <ahmadmahmoudiprogrammer@gmail.com>2025-02-23 12:09:38 +0330
committerA404M <ahmadmahmoudiprogrammer@gmail.com>2025-02-23 12:09:38 +0330
commit1bd43564b2edda3358e1b0ad9b83b64dfb59c0d9 (patch)
tree2079c5181267319f1ca3146614c2dde4c0c020d5 /src/runner/runner.c
parent51abdf014511f00f205333d033167a68d3eb7298 (diff)
fix < >= operator bug
Diffstat (limited to 'src/runner/runner.c')
-rw-r--r--src/runner/runner.c7
1 files changed, 3 insertions, 4 deletions
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;
}