mirror of
https://github.com/ToruNiina/toml11.git
synced 2025-09-17 00:38:08 +08:00
refactor: convert file size to size_t
This commit is contained in:
@@ -1939,7 +1939,8 @@ parse(std::istream& is, const std::string& fname = "unknown file")
|
||||
is.seekg(beg);
|
||||
|
||||
// read whole file as a sequence of char
|
||||
std::vector<char> letters(fsize);
|
||||
assert(fsize >= 0);
|
||||
std::vector<char> letters(static_cast<std::size_t>(fsize));
|
||||
is.read(letters.data(), fsize);
|
||||
|
||||
detail::location<std::vector<char>>
|
||||
|
Reference in New Issue
Block a user