Skip to content

Commit 8250e2c

Browse files
Update crates/core_simd/tests/ops_macros.rs
Co-authored-by: Caleb Zulawski <[email protected]>
1 parent b886e7c commit 8250e2c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/core_simd/tests/ops_macros.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ macro_rules! impl_signed_tests {
219219
fn rem_min_may_overflow<const LANES: usize>() {
220220
let a = Vector::<LANES>::splat(Scalar::MIN);
221221
let b = Vector::<LANES>::splat(-1);
222-
assert_eq!(a % b, a % (b * b));
222+
assert_eq!(a % b, Vector::<LANES>::splat(0));
223223
}
224224

225225
}

0 commit comments

Comments
 (0)