From b91805e1f0c6d82632a9a07cd13817f0626004ef Mon Sep 17 00:00:00 2001 From: Niels Lohmann Date: Mon, 2 Oct 2017 18:11:36 +0200 Subject: [PATCH] :rotating_light: removing a compiler warning #755 --- src/json.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/json.hpp b/src/json.hpp index b781b98c..b15470b6 100644 --- a/src/json.hpp +++ b/src/json.hpp @@ -6660,7 +6660,7 @@ class serializer return; } - const bool is_negative = x < 0; + const bool is_negative = std::is_same::value and (x < 0); std::size_t i = 0; // spare 1 byte for '\0'