mirror of
https://github.com/ToruNiina/toml11.git
synced 2025-09-17 00:38:08 +08:00
refactor: streamsize is a signed integer
This commit is contained in:
@@ -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
|
// value will be "\r\r\n". To avoid the additional "\r", use binary
|
||||||
// mode.
|
// mode.
|
||||||
std::ofstream ofs("tmp.toml", std::ios_base::binary);
|
std::ofstream ofs("tmp.toml", std::ios_base::binary);
|
||||||
ofs.write(table.data(), table.size());
|
ofs.write(table.data(), static_cast<std::streamsize>(table.size()));
|
||||||
}
|
}
|
||||||
const auto data = toml::parse("tmp.toml");
|
const auto data = toml::parse("tmp.toml");
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user