diff options
author | Guillaume Melquiond <guillaume.melquiond@gmail.com> | 2007-06-16 12:46:40 +0000 |
---|---|---|
committer | Guillaume Melquiond <guillaume.melquiond@gmail.com> | 2007-06-16 12:46:40 +0000 |
commit | c5d768891618f8ffbba4b4f9291becf20e277900 (patch) | |
tree | 5aa3b34d92b687e7898b6eaf3408e808b8556f16 /src | |
parent | 135e9c7d154aca9705775efd8c876b25f9f44384 (diff) | |
download | manaserv-c5d768891618f8ffbba4b4f9291becf20e277900.tar.gz manaserv-c5d768891618f8ffbba4b4f9291becf20e277900.tar.bz2 manaserv-c5d768891618f8ffbba4b4f9291becf20e277900.tar.xz manaserv-c5d768891618f8ffbba4b4f9291becf20e277900.zip |
Forgot the changelog entry. Work around compilers that have trouble dealing with zero-sized arrays.
Diffstat (limited to 'src')
-rw-r--r-- | src/utils/mathutils.cpp | 2 |
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); |