mirror of
https://github.com/nlohmann/json.git
synced 2024-07-16 19:33:02 +02:00
⏪ removed call to std::signbit #761
This commit is contained in:
parent
8af49d4be5
commit
1df836ce40
|
@ -6660,7 +6660,7 @@ class serializer
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
const auto is_negative = std::signbit(x);
|
const bool is_negative = x < 0;
|
||||||
std::size_t i = 0;
|
std::size_t i = 0;
|
||||||
|
|
||||||
// spare 1 byte for '\0'
|
// spare 1 byte for '\0'
|
||||||
|
|
Loading…
Reference in a new issue