Skip to content

Commit

Permalink
Well that was a silly idea; remove use of 1.70 function that simplifi…
Browse files Browse the repository at this point in the history
…ed nothing to keep at 1.65
  • Loading branch information
nirosys committed May 10, 2024
1 parent 2b81c51 commit f6ed2e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lazy/binary/raw/v1_1/value.rs
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ impl<'top> LazyRawBinaryValue_1_1<'top> {
)?;

// Handle special -0 encoding.
if coefficient_size > 0 && coefficient.value().as_i64().is_some_and(|c| c == 0) {
if coefficient_size > 0 && coefficient.value().as_i64() == Some(0) {
Decimal::negative_zero_with_exponent(exponent.value())
} else {
Decimal::new(coefficient, exponent.value())
Expand Down

0 comments on commit f6ed2e4

Please sign in to comment.