Skip to content

Commit e81c60e

Browse files
Update crates/core_simd/src/ops.rs
Co-authored-by: Jubilee <[email protected]>
1 parent 1aa6fb1 commit e81c60e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/core_simd/src/ops.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,7 @@ macro_rules! impl_unsigned_int_ops {
390390
if <$scalar>::MIN != 0 &&
391391
self.as_slice().iter().any(|x| *x == <$scalar>::MIN) &&
392392
rhs == -1 as _ {
393-
panic!("MIN modulo -1 is undefined");
393+
panic!("attempt to calculate the remainder with overflow");
394394
}
395395
let rhs = Self::splat(rhs);
396396
unsafe { crate::intrinsics::simd_rem(self, rhs) }

0 commit comments

Comments
 (0)