🔨 fixed a warning in MSVC

parent 6b12e404
...@@ -10323,7 +10323,7 @@ class basic_json ...@@ -10323,7 +10323,7 @@ class basic_json
// refill // refill
is.read(reinterpret_cast<char*>(buffer.data()), static_cast<std::streamsize>(buffer.size())); is.read(reinterpret_cast<char*>(buffer.data()), static_cast<std::streamsize>(buffer.size()));
// set unfilled characters to EOF // 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()), buffer.size() - static_cast<size_t>(is.gcount()),
std::char_traits<char>::eof()); std::char_traits<char>::eof());
// the buffer is ready // the buffer is ready
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment