mirror of
https://github.com/ToruNiina/toml11.git
synced 2024-11-23 04:40:06 +00:00
refactor: streamsize is a signed integer
This commit is contained in:
parent
be2d2aec52
commit
3b71f80652
@ -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<std::streamsize>(table.size()));
|
||||
}
|
||||
const auto data = toml::parse("tmp.toml");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user