From 1f73f7e22c207fa72391253e21332e02d055bd72 Mon Sep 17 00:00:00 2001 From: A404M Date: Mon, 7 Apr 2025 13:06:09 +0330 Subject: fix type checking fix memory leak in int value to float conversion --- src/compiler/ast-tree.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/compiler/ast-tree.h') diff --git a/src/compiler/ast-tree.h b/src/compiler/ast-tree.h index d8e9f9a..f29ce11 100644 --- a/src/compiler/ast-tree.h +++ b/src/compiler/ast-tree.h @@ -274,10 +274,11 @@ AstTree *astTreeParseAccessOperator(ParserNode *parserNode, AstTreeHelper *helper, AstTreeToken token); bool isFunction(AstTree *value); -bool isConst(AstTree *tree, AstTreeHelper *helper); +bool isConst(AstTree *tree); AstTree *makeTypeOf(AstTree *value); -bool typeIsEqual(const AstTree *type0, const AstTree *type1); -AstTree *getValue(AstTree *tree, AstTreeSetTypesHelper helper); +bool typeIsEqual(AstTree *type0,AstTree *type1); +bool typeIsEqualBack(const AstTree *type0, const AstTree *type1); +AstTree *getValue(AstTree *tree); bool isCircularDependencies(AstTreeHelper *helper, AstTreeVariable *variable); bool isCircularDependenciesBack(AstTreeHelper *helper, -- cgit v1.2.3