Remove ambiguity to keep MSVC happy
authorJohn Emmas <johne53@tiscali.co.uk>
Wed, 10 May 2017 11:22:57 +0000 (12:22 +0100)
committerJohn Emmas <johne53@tiscali.co.uk>
Wed, 10 May 2017 11:22:57 +0000 (12:22 +0100)
NB: Do we really need 'floor()' here?? (we seem to be multiplying integers)

gtk2_ardour/audio_clock.cc

index 4027890133f96b58336d3df4646b90ba81bba959..ebece6487cfc83f0723b6c7ec371fb47c58eebde 100644 (file)
@@ -1225,7 +1225,7 @@ AudioClock::set_session (Session *s)
 
                int64_t limit_sec = UIConfiguration::instance().get_clock_display_limit ();
                if (limit_sec > 0) {
-                       _limit_pos = (framecnt_t) floor (limit_sec * _session->frame_rate());
+                       _limit_pos = (framecnt_t) floor ((double)(limit_sec * _session->frame_rate()));
                }
 
                Config->ParameterChanged.connect (_session_connections, invalidator (*this), boost::bind (&AudioClock::session_configuration_changed, this, _1), gui_context());