Skip to content

Commit 7127589

Browse files
committed
test
1 parent 81b96a3 commit 7127589

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/int/big.rs

+1-6
Original file line numberDiff line numberDiff line change
@@ -106,12 +106,7 @@ impl ops::Shr<u32> for u256 {
106106
type Output = Self;
107107

108108
fn shr(self, rhs: u32) -> Self::Output {
109-
debug_assert!(rhs < Self::BITS, "attempted to shift right with overflow");
110-
111-
if rhs >= Self::BITS {
112-
// Only happens when not in debug mode
113-
return Self::ZERO;
114-
}
109+
assert!(rhs < Self::BITS, "attempted to shift right with overflow");
115110

116111
if rhs == 0 {
117112
return self;

0 commit comments

Comments
 (0)