Skip to content

Commit

Permalink
Fix d128 errors due to d128 error status not being cleared
Browse files Browse the repository at this point in the history
  • Loading branch information
probablykasper committed Apr 7, 2021
1 parent 7ceb484 commit 8d70be0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lexer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -416,6 +416,7 @@ pub fn lex(input: &str, allow_trailing_operators: bool, default_degree: Unit) ->
}

let number_string = &input[start_index..=end_index];
d128::set_status(decimal::Status::empty());
match d128::from_str(number_string) {
Ok(number) => {
if d128::get_status().is_empty() {
Expand Down

0 comments on commit 8d70be0

Please sign in to comment.