mirror of
https://github.com/ToruNiina/toml11.git
synced 2024-11-22 20:30:11 +00:00
refactor: convert file size to size_t
This commit is contained in:
parent
427706d671
commit
be04bf1302
@ -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>>
|
||||
|
Loading…
Reference in New Issue
Block a user