From cc937deaf6430a5a02d366bb3cb7140693f20c0e Mon Sep 17 00:00:00 2001 From: Niels Lohmann Date: Sun, 26 Nov 2017 10:15:23 +0100 Subject: [PATCH] :ambulance: the last commit contained a bug #821 --- src/json.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/json.hpp b/src/json.hpp index d8bc7bdf4..9754e464c 100644 --- a/src/json.hpp +++ b/src/json.hpp @@ -553,7 +553,7 @@ inline bool operator<(const value_t lhs, const value_t rhs) noexcept const auto l_index = static_cast(lhs); const auto r_index = static_cast(rhs); - return (l_index < order.size() and r_index <= order.size() and order[l_index] < order[r_index]); + return (l_index < order.size() and r_index < order.size() and order[l_index] < order[r_index]); }