From 4e54c9a13d85e1f9582c16e5186b7fd7d6025ee2 Mon Sep 17 00:00:00 2001
From: Niels Lohmann <mail@nlohmann.me>
Date: Sat, 29 Sep 2018 11:48:49 +0200
Subject: [PATCH] :rotating_light: fixed a compilation issue with ICPC #755

Closes #1222
---
 single_include/nlohmann/json.hpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/single_include/nlohmann/json.hpp b/single_include/nlohmann/json.hpp
index 93bb4f23..7900cf96 100644
--- a/single_include/nlohmann/json.hpp
+++ b/single_include/nlohmann/json.hpp
@@ -10135,7 +10135,7 @@ class serializer
             return;
         }
 
-        const bool is_negative = (x <= 0) and (x != 0);  // see issue #755
+        const bool is_negative = not (x >= 0);  // see issue #755
         std::size_t i = 0;
 
         while (x != 0)