File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -2102,7 +2102,7 @@ macro_rules! int_impl {
2102
2102
power_used * exp;
2103
2103
let ( num_shl, overflowed) = power_used. overflowing_mul( exp) ;
2104
2104
let fine = !overflowed
2105
- & ( power_used < ( mem:: size_of:: <Self >( ) * 8 ) as u32 ) ;
2105
+ & ( num_shl < ( mem:: size_of:: <Self >( ) * 8 ) as u32 ) ;
2106
2106
( 1 << num_shl) * fine as Self
2107
2107
} else {
2108
2108
if exp == 0 {
Original file line number Diff line number Diff line change @@ -1999,7 +1999,7 @@ macro_rules! uint_impl {
1999
1999
power_used * exp;
2000
2000
let ( num_shl, overflowed) = power_used. overflowing_mul( exp) ;
2001
2001
let fine = !overflowed
2002
- & ( power_used < ( mem:: size_of:: <Self >( ) * 8 ) as u32 ) ;
2002
+ & ( num_shl < ( mem:: size_of:: <Self >( ) * 8 ) as u32 ) ;
2003
2003
( 1 << num_shl) * fine as Self
2004
2004
} else {
2005
2005
if exp == 0 {
You can’t perform that action at this time.
0 commit comments