aboutsummaryrefslogtreecommitdiff
path: root/src/compiler
diff options
context:
space:
mode:
Diffstat (limited to 'src/compiler')
-rw-r--r--src/compiler/ast-tree.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/compiler/ast-tree.c b/src/compiler/ast-tree.c
index 628784a..a4159d1 100644
--- a/src/compiler/ast-tree.c
+++ b/src/compiler/ast-tree.c
@@ -5842,7 +5842,7 @@ bool setTypesIf(AstTree *tree, AstTreeSetTypesHelper helper,
return false;
}
- if (isConst(metadata->condition)) {
+ if (metadata->condition->token == AST_TREE_TOKEN_KEYWORD_COMPTIME) {
AstTree *condition = getValue(metadata->condition, true);
AstTree *result;
bool condi = *(AstTreeBool *)condition->metadata;
@@ -5913,7 +5913,7 @@ bool setTypesWhile(AstTree *tree, AstTreeSetTypesHelper _helper,
return false;
}
- if (isConst(metadata->condition)) {
+ if (metadata->condition->token == AST_TREE_TOKEN_KEYWORD_COMPTIME) {
AstTree *condition = getValue(metadata->condition, true);
bool condi = *(AstTreeBool *)condition->metadata;
astTreeDelete(condition);