forked from fmtlib/fmt
Fix typo (and thus bug)
This commit is contained in:
committed by
Victor Zverovich
parent
0c8ffe9b0f
commit
6f81ea151a
@ -2081,7 +2081,7 @@ template <> struct cache_accessor<double> {
|
||||
"k is out of range");
|
||||
|
||||
#if FMT_USE_FULL_CACHE_DRAGONBOX
|
||||
return data::dragonbox_pow10_significands_128[k - float_info<float>::min_k];
|
||||
return data::dragonbox_pow10_significands_128[k - float_info<double>::min_k];
|
||||
#else
|
||||
static const int compression_ratio = 27;
|
||||
|
||||
@ -2131,12 +2131,12 @@ template <> struct cache_accessor<double> {
|
||||
recovered_cache = {recovered_cache.high(), recovered_cache.low() + error};
|
||||
|
||||
return recovered_cache;
|
||||
}
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
static carrier_uint
|
||||
compute_mul(carrier_uint u, const cache_entry_type& cache) FMT_NOEXCEPT {
|
||||
static carrier_uint compute_mul(carrier_uint u,
|
||||
const cache_entry_type& cache) FMT_NOEXCEPT {
|
||||
return umul192_upper64(u, cache);
|
||||
}
|
||||
|
||||
@ -2530,7 +2530,7 @@ small_divisor_case_label:
|
||||
}
|
||||
return ret_value;
|
||||
}
|
||||
} // namespace detail
|
||||
} // namespace dragonbox
|
||||
|
||||
// Formats value using a variation of the Fixed-Precision Positive
|
||||
// Floating-Point Printout ((FPP)^2) algorithm by Steele & White:
|
||||
|
Reference in New Issue
Block a user