From 0cba99ed1bc2712c15c17f0940127e6f84395729 Mon Sep 17 00:00:00 2001 From: Chris Robinson <chris.kcat@gmail.com> Date: Fri, 25 Oct 2019 01:43:23 -0700 Subject: Avoid static constexpr for arrays iterated over at run-time --- common/alnumeric.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'common/alnumeric.h') 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 */ }; -- cgit v1.2.3