diff --git a/include/fmt/format.h b/include/fmt/format.h index 0bd2fdb1823d..9b62f244f139 100644 --- a/include/fmt/format.h +++ b/include/fmt/format.h @@ -1543,7 +1543,13 @@ FMT_CONSTEXPR inline fp get_cached_power(int min_exponent, const int dec_exp_step = 8; index = (index - first_dec_exp - 1) / dec_exp_step + 1; pow10_exponent = first_dec_exp + index * dec_exp_step; +#if defined(__NVCOMPILER_MAJOR__) && defined(__NVCOMPILER_MINOR__) && \ + (__NVCOMPILER_MAJOR__ == 22) && (__NVCOMPILER_MINOR__ == 3) + return {*(data::pow10_significands + index), + *(data::pow10_exponents + index)}; +#else return {data::pow10_significands[index], data::pow10_exponents[index]}; +#endif } #ifndef _MSC_VER