From 3b71f806524961c33d8f27af889d8aee90c56155 Mon Sep 17 00:00:00 2001 From: ToruNiina Date: Thu, 20 Jun 2019 23:59:54 +0900 Subject: [PATCH] refactor: streamsize is a signed integer --- tests/test_parse_file.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_parse_file.cpp b/tests/test_parse_file.cpp index e2d499b..518a98c 100644 --- a/tests/test_parse_file.cpp +++ b/tests/test_parse_file.cpp @@ -453,7 +453,7 @@ BOOST_AUTO_TEST_CASE(test_file_with_BOM) // value will be "\r\r\n". To avoid the additional "\r", use binary // mode. std::ofstream ofs("tmp.toml", std::ios_base::binary); - ofs.write(table.data(), table.size()); + ofs.write(table.data(), static_cast(table.size())); } const auto data = toml::parse("tmp.toml");