aboutsummaryrefslogtreecommitdiffstats
path: root/common/alnumeric.h
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2019-10-25 01:43:23 -0700
committerChris Robinson <[email protected]>2019-10-25 01:43:23 -0700
commit0cba99ed1bc2712c15c17f0940127e6f84395729 (patch)
treec5898dc9022da86450204f71579723c41d54bc92 /common/alnumeric.h
parent5ac1f192419a5d1d435a0f8703560823075799af (diff)
Avoid static constexpr for arrays iterated over at run-time
Diffstat (limited to 'common/alnumeric.h')
-rw-r--r--common/alnumeric.h2
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 */
};