Skip to content

Commit

Permalink
Fix bool
Browse files Browse the repository at this point in the history
  • Loading branch information
JakeRoggenbuck committed Sep 5, 2024
1 parent cd12619 commit 18acf75
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/parse.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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),
}
Expand Down

0 comments on commit 18acf75

Please sign in to comment.