mirror of
https://github.com/fmtlib/fmt.git
synced 2024-11-07 17:41:11 +00:00
Fix C4127 warning in basic_writer<Range>::write_double
This commit is contained in:
parent
9de312112a
commit
18400503da
@ -2923,8 +2923,8 @@ void basic_writer<Range>::write_double(T value, const format_specs &spec) {
|
||||
return write_inf_or_nan(handler.upper ? "INF" : "inf");
|
||||
|
||||
basic_memory_buffer<char_type> buffer;
|
||||
if (FMT_USE_GRISU && sizeof(T) <= sizeof(double) &&
|
||||
std::numeric_limits<double>::is_iec559) {
|
||||
if (internal::const_check(FMT_USE_GRISU && sizeof(T) <= sizeof(double) &&
|
||||
std::numeric_limits<double>::is_iec559)) {
|
||||
internal::fp fp_value(static_cast<double>(value));
|
||||
fp_value.normalize();
|
||||
// Find a cached power of 10 close to 1 / fp_value.
|
||||
|
Loading…
Reference in New Issue
Block a user