Correctly use iters_ in ProducerConsumerQueueBenchmark
[folly.git] / folly / test / GroupVarintTest.cpp
index 102c2f35924c73b8b7bf546da4be333a92d00de1..fa3bc117beea59f621fd0be6b041939559891f43 100644 (file)
@@ -60,7 +60,7 @@ void testGroupVarint32(uint32_t a, uint32_t b, uint32_t c, uint32_t d, ...) {
 
   // ssse3 decoding requires that the source buffer have length >= 17,
   // so that it can read 128 bits from &start[1] via _mm_loadu_si128.
-  foundBytes.resize(std::max(size + 4, 17UL));
+  foundBytes.resize(std::max<size_t>(size + 4, 17UL));
   char* start = &(foundBytes.front());
   char* p = GroupVarint32::encode(start, a, b, c, d);
   EXPECT_EQ((void*)(start + size), (void*)p);