Skip to content

Commit cfc3507

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

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
@@ -369,7 +369,7 @@ macro_rules! impl_unsigned_int_ops {
369369
if <$scalar>::MIN != 0 && self.as_slice().iter()
370370
.zip(rhs.as_slice().iter())
371371
.any(|(x,y)| *x == <$scalar>::MIN && *y == -1 as _) {
372-
panic!("MIN modulo -1 is undefined");
372+
panic!("attempt to calculate the remainder with overflow");
373373
}
374374
unsafe { crate::intrinsics::simd_rem(self, rhs) }
375375
}

0 commit comments

Comments
 (0)