🐛 fix binary comparison

parent 908941b8
...@@ -6310,7 +6310,7 @@ class basic_json ...@@ -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;
......
...@@ -21817,7 +21817,7 @@ class basic_json ...@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment