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:
Sonny Falk
2015-01-16 22:02:26 +00:00
parent e2760a7036
commit b39859f5c0

View File

@@ -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);