mirror of
https://github.com/nlohmann/json.git
synced 2024-11-28 00:59:02 +08:00
🐛 fix binary comparison
This commit is contained in:
parent
908941b87d
commit
6dee8866a8
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user