Suppress more bogus warnings

This commit is contained in:
Victor Zverovich
2014-12-17 06:53:32 -08:00
parent ecd2b80e8f
commit fb12cfd196
2 changed files with 5 additions and 2 deletions

View File

@@ -212,7 +212,8 @@ TEST(WriterTest, Allocator) {
typedef AllocatorRef<MockAllocator> TestAllocator;
MockAllocator alloc;
fmt::BasicMemoryWriter<char, TestAllocator> w((TestAllocator(&alloc)));
std::size_t size = 1.5 * fmt::internal::INLINE_BUFFER_SIZE;
std::size_t size =
static_cast<std::size_t>(1.5 * fmt::internal::INLINE_BUFFER_SIZE);
std::vector<char> mem(size);
EXPECT_CALL(alloc, allocate(size)).WillOnce(testing::Return(&mem[0]));
for (int i = 0; i < fmt::internal::INLINE_BUFFER_SIZE + 1; ++i)