mirror of
https://github.com/nlohmann/json.git
synced 2026-03-04 00:06:28 +00:00
🚑 the last commit contained a bug #821
This commit is contained in:
@@ -553,7 +553,7 @@ inline bool operator<(const value_t lhs, const value_t rhs) noexcept
|
||||
|
||||
const auto l_index = static_cast<std::size_t>(lhs);
|
||||
const auto r_index = static_cast<std::size_t>(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]);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user