Skip to content

Commit 434ed40

Browse files
update integer division panic case message
Co-authored-by: Caleb Zulawski <[email protected]>
1 parent 03a1735 commit 434ed40

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
@@ -295,7 +295,7 @@ macro_rules! impl_unsigned_int_ops {
295295
if <$scalar>::MIN != 0 && self.as_slice().iter()
296296
.zip(rhs.as_slice().iter())
297297
.any(|(x,y)| *x == <$scalar>::MIN && *y == -1 as _) {
298-
panic!("dividing MIN by -1 is undefined");
298+
panic!("attempt to divide with overflow");
299299
}
300300
unsafe { crate::intrinsics::simd_div(self, rhs) }
301301
}

0 commit comments

Comments
 (0)