C99/C++11: replace deprecated finite() by isfinite().
[blender.git] / source / blender / windowmanager / intern / wm_event_system.c
index 40b6f90f6f39f48768c958a09b7951e28ea84605..4f9d48450f6f5e7813c06eb136faa39cc50557b6 100644 (file)
@@ -2359,7 +2359,7 @@ void wm_event_do_handlers(bContext *C)
                                        
                                        if (is_playing_sound == 0) {
                                                const float time = BKE_sound_sync_scene(scene);
-                                               if (finite(time)) {
+                                               if (isfinite(time)) {
                                                        int ncfra = time * (float)FPS + 0.5f;
                                                        if (ncfra != scene->r.cfra) {
                                                                scene->r.cfra = ncfra;