From 53b90dc0dceaa29f23b80145a6a97ddea5731c99 Mon Sep 17 00:00:00 2001 From: John Emmas Date: Thu, 25 Feb 2021 16:44:23 +0000 Subject: [PATCH] Add a cast when using 'ceil' (to keep MSVC happy) --- gtk2_ardour/recorder_ui.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtk2_ardour/recorder_ui.cc b/gtk2_ardour/recorder_ui.cc index 7b750f0cf7..68663fee81 100644 --- a/gtk2_ardour/recorder_ui.cc +++ b/gtk2_ardour/recorder_ui.cc @@ -1591,7 +1591,7 @@ RecorderUI::RecRuler::render (Cairo::RefPtr const& cr, cairo_rec const int n_labels = floor (width / (_time_width * 1.75)); const samplecnt_t time_span = _right - _left; - const samplecnt_t time_granularity = ceil (time_span / n_labels / _session->sample_rate ()) * _session->sample_rate (); + const samplecnt_t time_granularity = ceil ((double)(time_span / n_labels / _session->sample_rate ())) * _session->sample_rate (); const double px_per_sample = width / (double) time_span; const samplepos_t lower = (_left / time_granularity) * time_granularity;