Fix compiler warning.

It works with signed and unsigned  integers.
This commit is contained in:
zakalibit 2018-09-01 11:14:31 +01:00 committed by GitHub
parent d713727f22
commit 4d94757e15
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -442,7 +442,7 @@ class 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)