From 9cf79189fcd461d63844e500b01d3974ef06ab73 Mon Sep 17 00:00:00 2001 From: Prateek Machiraju Date: Tue, 25 Aug 2020 10:11:41 -0400 Subject: [PATCH] Fix wpiutil compiler error --- wpiutil/src/main/native/cpp/json_serializer.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wpiutil/src/main/native/cpp/json_serializer.h b/wpiutil/src/main/native/cpp/json_serializer.h index 6983920fdd5..1fb873bd23f 100644 --- a/wpiutil/src/main/native/cpp/json_serializer.h +++ b/wpiutil/src/main/native/cpp/json_serializer.h @@ -121,7 +121,7 @@ class json::serializer return; } - const bool is_negative = (x <= 0) and (x != 0); // see issue #755 + const bool is_negative = x < 0; // see issue #755 std::size_t i = 0; while (x != 0)