diff --git a/src/json.hpp b/src/json.hpp index 36280c16..5ca6fd81 100644 --- a/src/json.hpp +++ b/src/json.hpp @@ -4862,7 +4862,7 @@ class basic_json } else if (lhs_type == value_t::number_integer and rhs_type == value_t::number_float) { - return static_cast(lhs.m_value.number_integer == rhs.m_value.number_float); + return static_cast(lhs.m_value.number_integer) == rhs.m_value.number_float; } else if (lhs_type == value_t::number_float and rhs_type == value_t::number_integer) { diff --git a/src/json.hpp.re2c b/src/json.hpp.re2c index b88d8fb0..1b65a095 100644 --- a/src/json.hpp.re2c +++ b/src/json.hpp.re2c @@ -4862,7 +4862,7 @@ class basic_json } else if (lhs_type == value_t::number_integer and rhs_type == value_t::number_float) { - return static_cast(lhs.m_value.number_integer == rhs.m_value.number_float); + return static_cast(lhs.m_value.number_integer) == rhs.m_value.number_float; } else if (lhs_type == value_t::number_float and rhs_type == value_t::number_integer) {