Skip to content

Commit

Permalink
No need to cast 0 as f64
Browse files Browse the repository at this point in the history
  • Loading branch information
Razican authored Mar 31, 2020
1 parent e251c8f commit 86df1fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion boa/src/syntax/lexer/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ impl<'a> Lexer<'a> {

let num = match self.preview_next() {
None => {
self.push_token(TokenKind::NumericLiteral(0 as f64));
self.push_token(TokenKind::NumericLiteral(0_f64));
return Ok(());
}
Some('x') | Some('X') => {
Expand Down

0 comments on commit 86df1fc

Please sign in to comment.