Skip to content

Commit 22fcf7e

Browse files
committed
Fix i256::MAX
1 parent da8b582 commit 22fcf7e

File tree

1 file changed

+1
-1
lines changed
  • compiler-builtins/src/int

1 file changed

+1
-1
lines changed

compiler-builtins/src/int/big.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ impl MinInt for i256 {
6565
const ZERO: Self = Self([0u64; 4]);
6666
const ONE: Self = Self([1, 0, 0, 0]);
6767
const MIN: Self = Self([0, 0, 0, 1 << 63]);
68-
const MAX: Self = Self([u64::MAX, u64::MAX, u64::MAX, u64::MAX << 1]);
68+
const MAX: Self = Self([u64::MAX, u64::MAX, u64::MAX, u64::MAX >> 1]);
6969
}
7070

7171
macro_rules! impl_common {

0 commit comments

Comments
 (0)