Skip to content

Commit 93c4acc

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

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
@@ -312,7 +312,7 @@ macro_rules! impl_unsigned_int_ops {
312312
panic!("attempt to divide by zero");
313313
}
314314
if <$scalar>::MIN != 0 && rhs == -1 as _ {
315-
panic!("dividing MIN by -1 is undefined");
315+
panic!("attempt to divide with overflow");
316316
}
317317
let rhs = Self::splat(rhs);
318318
unsafe { crate::intrinsics::simd_div(self, rhs) }

0 commit comments

Comments
 (0)