mirror of
https://github.com/ToruNiina/toml11.git
synced 2025-12-16 03:08:52 +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);
|
is.seekg(beg);
|
||||||
|
|
||||||
// read whole file as a sequence of char
|
// 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);
|
is.read(letters.data(), fsize);
|
||||||
|
|
||||||
detail::location<std::vector<char>>
|
detail::location<std::vector<char>>
|
||||||
|
|||||||
Reference in New Issue
Block a user