diff options
author | Chris Robinson <[email protected]> | 2019-10-25 01:43:23 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2019-10-25 01:43:23 -0700 |
commit | 0cba99ed1bc2712c15c17f0940127e6f84395729 (patch) | |
tree | c5898dc9022da86450204f71579723c41d54bc92 /common/alnumeric.h | |
parent | 5ac1f192419a5d1d435a0f8703560823075799af (diff) |
Avoid static constexpr for arrays iterated over at run-time
Diffstat (limited to 'common/alnumeric.h')
-rw-r--r-- | common/alnumeric.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/alnumeric.h b/common/alnumeric.h index b409ce9c..9158b764 100644 --- a/common/alnumeric.h +++ b/common/alnumeric.h @@ -308,7 +308,7 @@ inline float fast_roundf(float f) noexcept /* Integral limit, where sub-integral precision is not available for * floats. */ - static constexpr float ilim[2] = { + static const float ilim[2]{ 8388608.0f /* 0x1.0p+23 */, -8388608.0f /* -0x1.0p+23 */ }; |