C99/C++11: replace deprecated finite() by isfinite().
[blender.git] / source / blender / editors / mesh / editmesh_rip.c
index c7a7828f3b20ba917056860a3969739c7fde815b..9e71e646b1a4387d5056367642f1cf83692863b6 100644 (file)
@@ -77,14 +77,14 @@ static float edbm_rip_edgedist_squared(
                const float dist_2d = len_v2v2(vec1, vec2);
                if (dist_2d > FLT_EPSILON) {
                        const float dist = inset / dist_2d;
-                       BLI_assert(finite(dist));
+                       BLI_assert(isfinite(dist));
                        interp_v2_v2v2(vec1, vec1, vec2, dist);
                        interp_v2_v2v2(vec2, vec2, vec1, dist);
                }
        }
 
        dist_sq = dist_squared_to_line_segment_v2(mvalf, vec1, vec2);
-       BLI_assert(finite(dist_sq));
+       BLI_assert(isfinite(dist_sq));
 
        return dist_sq;
 }