fixed streamsize conversion warning on ARM

This commit is contained in:
Mark Gillard 2020-06-28 15:46:04 +01:00
parent 0b334fd7d2
commit 25c020bb43
2 changed files with 2 additions and 2 deletions

View File

@ -529,7 +529,7 @@ namespace toml
{
std::vector<StreamChar> file_data;
file_data.resize(static_cast<size_t>(file_size));
file.read(file_data.data(), file_size);
file.read(file_data.data(), static_cast<std::streamsize>(file_size));
return parse(std::basic_string_view<StreamChar>{ file_data.data(), file_data.size() }, std::move(file_path_str));
}

View File

@ -5981,7 +5981,7 @@ namespace toml
{
std::vector<StreamChar> file_data;
file_data.resize(static_cast<size_t>(file_size));
file.read(file_data.data(), file_size);
file.read(file_data.data(), static_cast<std::streamsize>(file_size));
return parse(std::basic_string_view<StreamChar>{ file_data.data(), file_data.size() }, std::move(file_path_str));
}