Skip to content

Commit

Permalink
Merge pull request #992 from bogemic/pvs_studio_fix_misprinted_condition
Browse files Browse the repository at this point in the history
fixed misprinted condition detected by PVS Studio.
  • Loading branch information
nlohmann committed Mar 5, 2018
2 parents 8d104e6 + fd30ad8 commit fdecbf6
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 @@ -5179,7 +5179,7 @@ class basic_json

// passed iterators must belong to objects
if (JSON_UNLIKELY(not first.m_object->is_object()
or not first.m_object->is_object()))
or not last.m_object->is_object()))
{
JSON_THROW(invalid_iterator::create(202, "iterators first and last must point to objects"));
}
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 @@ -14777,7 +14777,7 @@ class basic_json

// passed iterators must belong to objects
if (JSON_UNLIKELY(not first.m_object->is_object()
or not first.m_object->is_object()))
or not last.m_object->is_object()))
{
JSON_THROW(invalid_iterator::create(202, "iterators first and last must point to objects"));
}
Expand Down

0 comments on commit fdecbf6

Please sign in to comment.