about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--crates/core_simd/tests/ops_impl/float_macros.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/core_simd/tests/ops_impl/float_macros.rs b/crates/core_simd/tests/ops_impl/float_macros.rs
index c1e0072950f..e63b689a175 100644
--- a/crates/core_simd/tests/ops_impl/float_macros.rs
+++ b/crates/core_simd/tests/ops_impl/float_macros.rs
@@ -387,7 +387,7 @@ macro_rules! float_tests {
                 // all of the mantissa digits set to 1, pushed up to the MSB.
                 const ALL_MANTISSA_BITS: $int_scalar = ((1 << <$scalar>::MANTISSA_DIGITS) - 1);
                 const MAX_REPRESENTABLE_VALUE: $int_scalar =
-                    ALL_MANTISSA_BITS << (core::mem::size_of::<$scalar>() * 8 as usize - <$scalar>::MANTISSA_DIGITS as usize);
+                    ALL_MANTISSA_BITS << (core::mem::size_of::<$scalar>() * 8 - <$scalar>::MANTISSA_DIGITS as usize - 1);
                 const VALUES: [$scalar; 16] = [
                     -0.0,
                     0.0,