mirror of
https://github.com/nlohmann/json
synced 2024-11-24 04:40:13 +00:00
🏁 fix for #581
This commit is contained in:
parent
978255da8c
commit
9b764ee5d6
@ -9005,7 +9005,7 @@ class basic_json
|
||||
{
|
||||
// avoid reading too many characters
|
||||
const size_t max_length = static_cast<size_t>(limit - start);
|
||||
return std::string(start + offset, std::min({length, max_length - offset}));
|
||||
return std::string(start + offset, std::min(length, max_length - offset));
|
||||
}
|
||||
|
||||
private:
|
||||
|
Loading…
Reference in New Issue
Block a user