mirror of
https://github.com/nlohmann/json.git
synced 2026-10-30 17:35:42 +00:00
pvs_studio fix. misprinted condition
This commit is contained in:
1 parent
8d104e6fe3
commit
2a2ed799b1
1 file changed
+1
-1
@@ -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"));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user