🐛 fix binary comparison

This commit is contained in:
Niels Lohmann 2020-05-05 12:40:04 +02:00
parent 908941b87d
commit 6dee8866a8
No known key found for this signature in database
GPG key ID: 7F3CEA63AE251B69
2 changed files with 2 additions and 2 deletions

View file

@ -6310,7 +6310,7 @@ class basic_json
return (lhs.m_value.number_float) < (rhs.m_value.number_float); return (lhs.m_value.number_float) < (rhs.m_value.number_float);
case value_t::binary: case value_t::binary:
return (lhs.m_value.binary) < (rhs.m_value.binary); return (*lhs.m_value.binary) < (*rhs.m_value.binary);
default: default:
return false; return false;

View file

@ -21817,7 +21817,7 @@ class basic_json
return (lhs.m_value.number_float) < (rhs.m_value.number_float); return (lhs.m_value.number_float) < (rhs.m_value.number_float);
case value_t::binary: case value_t::binary:
return (lhs.m_value.binary) < (rhs.m_value.binary); return (*lhs.m_value.binary) < (*rhs.m_value.binary);
default: default:
return false; return false;