Unverified Commit fdecbf6e by Niels Lohmann Committed by GitHub

Merge pull request #992 from bogemic/pvs_studio_fix_misprinted_condition

fixed misprinted condition detected by PVS Studio.
parents 8d104e6f fd30ad8a
...@@ -5179,7 +5179,7 @@ class basic_json ...@@ -5179,7 +5179,7 @@ class basic_json
// passed iterators must belong to objects // passed iterators must belong to objects
if (JSON_UNLIKELY(not first.m_object->is_object() 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")); JSON_THROW(invalid_iterator::create(202, "iterators first and last must point to objects"));
} }
......
...@@ -14777,7 +14777,7 @@ class basic_json ...@@ -14777,7 +14777,7 @@ class basic_json
// passed iterators must belong to objects // passed iterators must belong to objects
if (JSON_UNLIKELY(not first.m_object->is_object() 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")); JSON_THROW(invalid_iterator::create(202, "iterators first and last must point to objects"));
} }
......
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