Skip to content

Commit

Permalink
🐛 fixed regression nlohmann#1530
Browse files Browse the repository at this point in the history
  • Loading branch information
nlohmann committed Mar 20, 2019
1 parent 9d6ab90 commit b33093d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion include/nlohmann/json.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -5730,7 +5730,7 @@ class basic_json
case value_t::array:
// note parentheses are necessary, see
// https://github.com/nlohmann/json/issues/1530
return (*lhs.m_value.array < *rhs.m_value.array);
return (*lhs.m_value.array) < (*rhs.m_value.array);

case value_t::object:
return *lhs.m_value.object < *rhs.m_value.object;
Expand Down
2 changes: 1 addition & 1 deletion single_include/nlohmann/json.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -18495,7 +18495,7 @@ class basic_json
case value_t::array:
// note parentheses are necessary, see
// https://github.com/nlohmann/json/issues/1530
return (*lhs.m_value.array < *rhs.m_value.array);
return (*lhs.m_value.array) < (*rhs.m_value.array);

case value_t::object:
return *lhs.m_value.object < *rhs.m_value.object;
Expand Down

0 comments on commit b33093d

Please sign in to comment.