Fix d128 errors due to d128 error status not being cleared
This commit is contained in:
parent
7ceb484f98
commit
8d70be0967
@ -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() {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user