mirror of
https://github.com/nlohmann/json.git
synced 2026-02-24 12:26:25 +00:00
Enable modernize-use-integer-sign-comparison check (#4581)
Signed-off-by: Niels Lohmann <mail@nlohmann.me>
This commit is contained in:
@@ -75,7 +75,7 @@ class SaxEventLogger
|
||||
|
||||
bool start_object(std::size_t elements)
|
||||
{
|
||||
if (elements == static_cast<std::size_t>(-1))
|
||||
if (elements == (std::numeric_limits<std::size_t>::max)())
|
||||
{
|
||||
events.emplace_back("start_object()");
|
||||
}
|
||||
@@ -100,7 +100,7 @@ class SaxEventLogger
|
||||
|
||||
bool start_array(std::size_t elements)
|
||||
{
|
||||
if (elements == static_cast<std::size_t>(-1))
|
||||
if (elements == (std::numeric_limits<std::size_t>::max)())
|
||||
{
|
||||
events.emplace_back("start_array()");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user