mirror of
https://github.com/nlohmann/json.git
synced 2024-08-23 05:22:28 +02:00
Merge branch 'develop' of https://github.com/nlohmann/json into develop
This commit is contained in:
commit
747f7d36d1
|
@ -8987,7 +8987,7 @@ class basic_json
|
||||||
{
|
{
|
||||||
// avoid reading too many characters
|
// avoid reading too many characters
|
||||||
const size_t max_length = static_cast<size_t>(limit - start);
|
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:
|
private:
|
||||||
|
|
Loading…
Reference in a new issue