Skip to content

Commit 5f3c899

Browse files
committed
Use unsigned_abs throughout repository
1 parent 95e1b92 commit 5f3c899

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/num/dec2flt/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ fn bound_intermediate_digits(decimal: &Decimal<'_>, e: i64) -> u64 {
332332
// It tries to find a positive number k such that `f << k / 10^e` is an in-range
333333
// significand. This will result in about `2^53 * f * 10^e` < `10^17 * f * 10^e`.
334334
// One input that triggers this is 0.33...33 (375 x 3).
335-
f_len + (e.abs() as u64) + 17
335+
f_len + e.unsigned_abs() + 17
336336
}
337337
}
338338

0 commit comments

Comments
 (0)