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