From c61a9071ae9410daa629246c46a24165626f992b Mon Sep 17 00:00:00 2001 From: Niels Lohmann Date: Sat, 29 Sep 2018 11:50:14 +0200 Subject: [PATCH] :rotating_light: fixed a compilation issue with ICPC #755 Closes #1222 --- include/nlohmann/detail/output/serializer.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/nlohmann/detail/output/serializer.hpp b/include/nlohmann/detail/output/serializer.hpp index de3676ac5..e2655f049 100644 --- a/include/nlohmann/detail/output/serializer.hpp +++ b/include/nlohmann/detail/output/serializer.hpp @@ -442,7 +442,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)