diff --git a/include/nlohmann/json.hpp b/include/nlohmann/json.hpp index f2420dad..f85e8e47 100644 --- a/include/nlohmann/json.hpp +++ b/include/nlohmann/json.hpp @@ -6310,7 +6310,7 @@ class basic_json return (lhs.m_value.number_float) < (rhs.m_value.number_float); case value_t::binary: - return (lhs.m_value.binary) < (rhs.m_value.binary); + return (*lhs.m_value.binary) < (*rhs.m_value.binary); default: return false; diff --git a/single_include/nlohmann/json.hpp b/single_include/nlohmann/json.hpp index f107723a..a1bf8c8b 100644 --- a/single_include/nlohmann/json.hpp +++ b/single_include/nlohmann/json.hpp @@ -21817,7 +21817,7 @@ class basic_json return (lhs.m_value.number_float) < (rhs.m_value.number_float); case value_t::binary: - return (lhs.m_value.binary) < (rhs.m_value.binary); + return (*lhs.m_value.binary) < (*rhs.m_value.binary); default: return false;