🚨 fixing last warning in #755

pull/749/merge
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
1 changed files with 1 additions and 1 deletions

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)