diff options
author | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2016-05-16 01:48:02 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2016-05-17 22:39:16 +0300 |
commit | 21fddf7d1c0653881773e44cea6e9d0804a08b31 (patch) | |
tree | cf3179fce0393c9cc2577d546db790d5f7705694 /source/blender/python/mathutils/mathutils_Quaternion.c | |
parent | 2b73402547a7c765f302a0d4218f96b5a710e96f (diff) |
C99/C++11: replace deprecated finite() by isfinite().
Diffstat (limited to 'source/blender/python/mathutils/mathutils_Quaternion.c')
-rw-r--r-- | source/blender/python/mathutils/mathutils_Quaternion.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/python/mathutils/mathutils_Quaternion.c b/source/blender/python/mathutils/mathutils_Quaternion.c index ea5732966b2..71b3cf8ddac 100644 --- a/source/blender/python/mathutils/mathutils_Quaternion.c +++ b/source/blender/python/mathutils/mathutils_Quaternion.c @@ -1165,9 +1165,9 @@ static void quat__axis_angle_sanitize(float axis[3], float *angle) { if (axis) { if (is_zero_v3(axis) || - !finite(axis[0]) || - !finite(axis[1]) || - !finite(axis[2])) + !isfinite(axis[0]) || + !isfinite(axis[1]) || + !isfinite(axis[2])) { axis[0] = 1.0f; axis[1] = 0.0f; @@ -1182,7 +1182,7 @@ static void quat__axis_angle_sanitize(float axis[3], float *angle) } if (angle) { - if (!finite(*angle)) { + if (!isfinite(*angle)) { *angle = 0.0f; } } |