From 5cb6d7187d6cac51cbf14d7c90b5edb80fb0a993 Mon Sep 17 00:00:00 2001
From: Niels Lohmann <mail@nlohmann.me>
Date: Wed, 4 Oct 2017 17:28:35 +0200
Subject: [PATCH] :rotating_light: fixing last warning in #755

---
 src/json.hpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/json.hpp b/src/json.hpp
index 1a542bdf..24773823 100644
--- a/src/json.hpp
+++ b/src/json.hpp
@@ -6656,7 +6656,7 @@ class serializer
             return;
         }
 
-        const bool is_negative = std::is_same<NumberType, number_integer_t>::value and (x < 0);
+        const bool is_negative = (x <= 0) and (x != 0);  // see issue #755
         std::size_t i = 0;
 
         while (x != 0)