mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-01 05:01:59 +01:00
Fix MSVC truncation of constant value warning.
This commit is contained in:
parent
79f2047cca
commit
4bf9737876
@ -110,7 +110,7 @@ template <typename T, unsigned Bits> struct BitPatterns {
|
||||
static constexpr Unsigned SignBitMask = Unsigned(1) << (Bits - 1); // 00100000
|
||||
static constexpr Unsigned Smax = Umax >> 1U; // 00011111
|
||||
static constexpr Unsigned Smin = ~Smax; // 11100000
|
||||
static constexpr Unsigned SignExtend = Smin << 1U; // 11000000
|
||||
static constexpr Unsigned SignExtend = Unsigned(Smin << 1U); // 11000000
|
||||
};
|
||||
|
||||
/// `Compressor` is used to manipulate the bits of a (possibly signed) integer
|
||||
|
Loading…
x
Reference in New Issue
Block a user