1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 11:13:28 +01:00

Get rid of VS2015 operator precedence warning. NFCI.

llvm-svn: 275971
This commit is contained in:
Simon Pilgrim 2016-07-19 12:26:51 +00:00
parent 754a2807ef
commit 66bfb56b57

View File

@ -300,7 +300,7 @@ inline bool isShiftedInt(int64_t x) {
template <unsigned N>
inline typename std::enable_if<(N < 64), bool>::type isUInt(uint64_t X) {
static_assert(N > 0, "isUInt<0> doesn't make sense");
return X < (UINT64_C(1) << N);
return X < (UINT64_C(1) << (N));
}
template <unsigned N>
inline typename std::enable_if<N >= 64, bool>::type isUInt(uint64_t X) {