Skip to content

Commit 4b9510f

Browse files
I am the ultimate dingus
thank you @saethlin Co-authored-by: Ben Kimock <kimockb@gmail.com>
1 parent 44cdc07 commit 4b9510f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

library/core/src/num/uint_macros.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1014,11 +1014,11 @@ macro_rules! uint_impl {
10141014
unsafe {
10151015
let lhs = self;
10161016
intrinsics::assert_unsafe_precondition!(
1017-
concat!(stringify!($SelfT), "::unchecked_shl cannot overflow"),
1017+
concat!(stringify!($SelfT), "::unchecked_shr cannot overflow"),
10181018
(rhs: u32) => rhs < <$SelfT>::BITS
10191019
);
10201020
let rhs = conv_rhs_for_unchecked_shift!($SelfT, rhs);
1021-
intrinsics::unchecked_shl(lhs, rhs)
1021+
intrinsics::unchecked_shr(lhs, rhs)
10221022
}
10231023
}
10241024

0 commit comments

Comments
 (0)