🚨 fixing last warning in #755

This commit is contained in:
Niels Lohmann 2017-10-04 17:28:35 +02:00
parent 4e81c1db47
commit 5cb6d7187d
No known key found for this signature in database
GPG key ID: 7F3CEA63AE251B69

View file

@ -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)