summaryrefslogtreecommitdiff
path: root/src/utils/mathutils.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils/mathutils.cpp')
-rw-r--r--src/utils/mathutils.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utils/mathutils.cpp b/src/utils/mathutils.cpp
index 1c5e608c..6ffaffc2 100644
--- a/src/utils/mathutils.cpp
+++ b/src/utils/mathutils.cpp
@@ -45,7 +45,7 @@ float tanList[MATH_UTILS_MAX_ANGLE];
*/
float utils::math::fastInvSqrt(float x)
{
- typedef char float_is_32_bits[(sizeof(float) == 4) - 1];
+ typedef char float_must_be_32_bits[(sizeof(float) == 4) * 2 - 1];
float xhalf = 0.5f * x;
uint32_t i;
memcpy(&i, &x, 4);