From 2a2ed799b1ccc58dc8594770150684a7303fc2d8 Mon Sep 17 00:00:00 2001 From: Mike Bogdanov Date: Fri, 2 Mar 2018 11:12:44 +0300 Subject: [PATCH] pvs_studio fix. misprinted condition --- include/nlohmann/json.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/nlohmann/json.hpp b/include/nlohmann/json.hpp index f92729f3..591bce33 100644 --- a/include/nlohmann/json.hpp +++ b/include/nlohmann/json.hpp @@ -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")); }