Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion compiler-builtins/src/int/big.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ impl MinInt for i256 {
const ZERO: Self = Self([0u64; 4]);
const ONE: Self = Self([1, 0, 0, 0]);
const MIN: Self = Self([0, 0, 0, 1 << 63]);
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]);
}

macro_rules! impl_common {
Expand Down
2 changes: 1 addition & 1 deletion libm/src/math/support/big.rs
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ impl MinInt for i256 {
};
const MAX: Self = Self {
lo: u128::MAX,
hi: u128::MAX << 1,
hi: u128::MAX >> 1,
};
}

Expand Down
Loading