We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
i256::MAX
1 parent da8b582 commit 22fcf7eCopy full SHA for 22fcf7e
compiler-builtins/src/int/big.rs
@@ -65,7 +65,7 @@ impl MinInt for i256 {
65
const ZERO: Self = Self([0u64; 4]);
66
const ONE: Self = Self([1, 0, 0, 0]);
67
const MIN: Self = Self([0, 0, 0, 1 << 63]);
68
- const MAX: Self = Self([u64::MAX, u64::MAX, u64::MAX, u64::MAX << 1]);
+ const MAX: Self = Self([u64::MAX, u64::MAX, u64::MAX, u64::MAX >> 1]);
69
}
70
71
macro_rules! impl_common {
0 commit comments