From af6a58bfad54dc9d3cb49d1efa1c90a5d094bcb1 Mon Sep 17 00:00:00 2001 From: A404M Date: Sun, 23 Feb 2025 22:09:19 +0330 Subject: fix bugs in float types --- src/compiler/ast-tree.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/compiler/ast-tree.c') diff --git a/src/compiler/ast-tree.c b/src/compiler/ast-tree.c index 1b56220..8cb1fce 100644 --- a/src/compiler/ast-tree.c +++ b/src/compiler/ast-tree.c @@ -2447,7 +2447,8 @@ bool setTypesValueFloat(AstTree *tree, AstTreeSetTypesHelper helper) { printWarning(tree->str_begin, tree->str_end, "Value is overflowing"); } tree->type = &AST_TREE_F32_TYPE; - } else if (helper.lookingType == &AST_TREE_F64_TYPE || helper.lookingType == NULL) { + } else if (helper.lookingType == &AST_TREE_F64_TYPE || + helper.lookingType == NULL) { tree->token = AST_TREE_TOKEN_VALUE_FLOAT; AstTreeFloat value = *(AstTreeFloat *)tree->metadata; f64 newValue = value; -- cgit v1.2.3