mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Fix compile error for 32-bit builds.
This fixes a compile error with int vs. unsigned long in the call to std::min(), similar to a few lines below. Swift SVN r24480
This commit is contained in:
@@ -100,7 +100,7 @@ void ClusteredBitVector::appendReserved(size_t numBits,
|
||||
|
||||
// If not, we need to combine the generator result with that last chunk.
|
||||
if (offset) {
|
||||
auto claimedBits = std::min(numBits, ChunkSizeInBits - offset);
|
||||
auto claimedBits = std::min(numBits, size_t(ChunkSizeInBits - offset));
|
||||
|
||||
// The extra bits in data[chunkIndex] are guaranteed to be zero.
|
||||
*nextChunk++ |= (getMoreBits(claimedBits) << offset);
|
||||
|
||||
Reference in New Issue
Block a user