From 18acf75ebbd5b0e74e42e94308931462f3abb6d9 Mon Sep 17 00:00:00 2001 From: Jake Date: Thu, 5 Sep 2024 16:56:44 -0700 Subject: [PATCH] Fix bool --- src/parse.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/parse.rs b/src/parse.rs index 01f2e1d..900d47d 100644 --- a/src/parse.rs +++ b/src/parse.rs @@ -223,7 +223,7 @@ impl Parser for ParserState { match a_float_res { Ok(a_val) => self.stack.push(Token { token_type: TokenType::BoolLiteral, - value: (a_val != 0.0).to_string(), + value: ((a_val != 0.0) as i32).to_string(), }), Err(_) => wrong_type_error_first(a.value, token.value), }