diff --git a/src/json.hpp b/src/json.hpp index 7a1fbc23..2ed408c8 100644 --- a/src/json.hpp +++ b/src/json.hpp @@ -8987,7 +8987,7 @@ class basic_json { // avoid reading too many characters const size_t max_length = static_cast(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: