mirror of
https://github.com/nlohmann/json.git
synced 2024-07-07 12:23:49 +02:00
🔨 fixed a warning in MSVC
This commit is contained in:
parent
6b12e40478
commit
19d119e18c
|
@ -10323,7 +10323,7 @@ class basic_json
|
|||
// refill
|
||||
is.read(reinterpret_cast<char*>(buffer.data()), static_cast<std::streamsize>(buffer.size()));
|
||||
// set unfilled characters to EOF
|
||||
std::fill_n(buffer.begin() + is.gcount(),
|
||||
std::fill_n(buffer.begin() + static_cast<int>(is.gcount()),
|
||||
buffer.size() - static_cast<size_t>(is.gcount()),
|
||||
std::char_traits<char>::eof());
|
||||
// the buffer is ready
|
||||
|
|
Loading…
Reference in a new issue