mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-07 12:30:57 +00:00
Fixed a type conversion error in BitVector.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@301033 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
82ba8f89e0
commit
9dfab9e768
@ -755,7 +755,7 @@ private:
|
||||
}
|
||||
|
||||
void grow(unsigned NewSize) {
|
||||
unsigned NewCapacity = std::max(NumBitWords(NewSize), Bits.size() * 2);
|
||||
size_t NewCapacity = std::max<size_t>(NumBitWords(NewSize), Bits.size() * 2);
|
||||
assert(NewCapacity > 0 && "realloc-ing zero space");
|
||||
BitWord *NewBits =
|
||||
(BitWord *)std::realloc(Bits.data(), NewCapacity * sizeof(BitWord));
|
||||
|
Loading…
Reference in New Issue
Block a user