From 3245a0dc06b02cf267521d90f7290f813ec7775e Mon Sep 17 00:00:00 2001 From: Niels Date: Sun, 24 Jan 2016 16:42:13 +0100 Subject: [PATCH] fixed #194 --- src/json.hpp | 2 +- src/json.hpp.re2c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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) {