Skip to content

Commit 1c254ed

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

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
@@ -314,7 +314,7 @@ macro_rules! impl_unsigned_int_ops {
314314
if <$scalar>::MIN != 0 &&
315315
self.as_slice().iter().any(|x| *x == <$scalar>::MIN) &&
316316
rhs == -1 as _ {
317-
panic!("dividing MIN by -1 is undefined");
317+
panic!("attempt to divide with overflow");
318318
}
319319
let rhs = Self::splat(rhs);
320320
unsafe { crate::intrinsics::simd_div(self, rhs) }

0 commit comments

Comments
 (0)