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

Fixed MSVC Win64 warning of implicit conversion of 32-bit shift to 64-bits.

llvm-svn: 258084
This commit is contained in:
Simon Pilgrim 2016-01-18 21:11:19 +00:00
parent 72115d5fb6
commit 269ccdb97d

View File

@ -315,7 +315,7 @@ void NodeAllocator::startNewBlock() {
// Check if the block index is still within the allowed range, i.e. less
// than 2^N, where N is the number of bits in NodeId for the block index.
// BitsPerIndex is the number of bits per node index.
assert((Blocks.size() < (1U << (8*sizeof(NodeId)-BitsPerIndex))) &&
assert((Blocks.size() < ((size_t)1 << (8*sizeof(NodeId)-BitsPerIndex))) &&
"Out of bits for block index");
ActiveEnd = P;
}