C99/C++11: replace deprecated finite() by isfinite().
[blender.git] / source / blender / blenlib / intern / math_base.c
index 0a1e9e8a8a174e018b8e589a38381d7488456e90..14eba3e61a40e10dbb87789eb4d514464c7a8d93 100644 (file)
@@ -56,7 +56,7 @@ double double_round(double x, int ndigits)
                pow2 = 1.0;
                y = (x * pow1) * pow2;
                /* if y overflows, then rounded value is exactly x */
-               if (!finite(y))
+               if (!isfinite(y))
                        return x;
        }
        else {