1
0
mirror of https://github.com/nlohmann/json synced 2024-11-27 22:30:09 +00:00

🚨 removing a compiler warning #755

This commit is contained in:
Niels Lohmann 2017-10-02 18:11:36 +02:00
parent 8be303d4fb
commit b91805e1f0
No known key found for this signature in database
GPG Key ID: 7F3CEA63AE251B69

View File

@ -6660,7 +6660,7 @@ class serializer
return;
}
const bool is_negative = x < 0;
const bool is_negative = std::is_same<NumberType, number_integer_t>::value and (x < 0);
std::size_t i = 0;
// spare 1 byte for '\0'