summaryrefslogtreecommitdiff
path: root/gtk2_ardour/audio_clock.cc
diff options
context:
space:
mode:
authorJohn Emmas <johne53@tiscali.co.uk>2017-05-10 12:22:57 +0100
committerJohn Emmas <johne53@tiscali.co.uk>2017-05-10 12:22:57 +0100
commit2b33d35e5c61d05e77d67443c954c35b046a16ee (patch)
tree3420ab9da795ceab7e87830c643fe2038b8f913a /gtk2_ardour/audio_clock.cc
parentbcbdd858faff38b9b22573284f07bdb35b76140b (diff)
Remove ambiguity to keep MSVC happy
NB: Do we really need 'floor()' here?? (we seem to be multiplying integers)
Diffstat (limited to 'gtk2_ardour/audio_clock.cc')
-rw-r--r--gtk2_ardour/audio_clock.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk2_ardour/audio_clock.cc b/gtk2_ardour/audio_clock.cc
index 4027890133..ebece6487c 100644
--- a/gtk2_ardour/audio_clock.cc
+++ b/gtk2_ardour/audio_clock.cc
@@ -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());