From f62981bc3722289f0e503e7a54e2d98e3fe2480a Mon Sep 17 00:00:00 2001 From: Rose Hogenson Date: Mon, 6 Jan 2025 04:57:07 -0800 Subject: Bump dependencies. --- src/eval.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/eval.rs') diff --git a/src/eval.rs b/src/eval.rs index beda22b..7fa3408 100644 --- a/src/eval.rs +++ b/src/eval.rs @@ -15,10 +15,10 @@ fn int_to_float(i: &BigInt) -> f64 { let mut fraction; if exponent <= 52 { // The number can be represented exactly without rounding. - fraction = i.to_u64().unwrap() << 52 - exponent; + fraction = i.to_u64().unwrap() << (52 - exponent); } else { // We need to round. - let power = BigInt::from(1) << exponent - 52; + let power = BigInt::from(1) << (exponent - 52); let (rounded_fraction, rem) = i.div_rem(&power); fraction = rounded_fraction.to_u64().unwrap(); let half = power >> 1; -- cgit v1.3.1