Skip to content

Commit

Permalink
nvhpc/22.3: workaround for c++17 mode.
Browse files Browse the repository at this point in the history
  • Loading branch information
olupton committed Aug 8, 2022
1 parent c4ee726 commit 203a4ce
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions include/fmt/format.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 203a4ce

Please sign in to comment.