Revert unnecessary changes.
This commit is contained in:
parent
d6d33a99c6
commit
141d1cf93d
@ -2875,14 +2875,10 @@ void basic_writer<Range>::write_double(T value, const format_specs& spec) {
|
|||||||
|
|
||||||
// Format NaN and ininity ourselves because sprintf's output is not consistent
|
// Format NaN and ininity ourselves because sprintf's output is not consistent
|
||||||
// across platforms.
|
// across platforms.
|
||||||
if (internal::fputil::isnotanumber(value)) {
|
if (internal::fputil::isnotanumber(value))
|
||||||
write_inf_or_nan(handler.upper ? "NAN" : "nan");
|
return write_inf_or_nan(handler.upper ? "NAN" : "nan");
|
||||||
return;
|
if (internal::fputil::isinfinity(value))
|
||||||
}
|
return write_inf_or_nan(handler.upper ? "INF" : "inf");
|
||||||
if (internal::fputil::isinfinity(value)) {
|
|
||||||
write_inf_or_nan(handler.upper ? "INF" : "inf");
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
memory_buffer buffer;
|
memory_buffer buffer;
|
||||||
int exp = 0;
|
int exp = 0;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user