Fix/suppress MSVC warnings

This commit is contained in:
vitaut
2016-03-19 06:39:33 -07:00
parent 63d7f3d116
commit 9ffe98c00e
4 changed files with 7 additions and 3 deletions

View File

@@ -171,7 +171,7 @@ TEST(FormatTest, WriteToOStreamMaxSize) {
EXPECT_CALL(buffer, xsputn(data, static_cast<std::streamsize>(n)))
.WillOnce(testing::Return(max_streamsize));
data += n;
size -= n;
size -= static_cast<std::size_t>(n);
} while (size != 0);
fmt::write(os, w);
}