Keep MSVC happy by specifying which version of 'floor()' we want (gtk2_ardour)
authorJohn Emmas <johne53@tiscali.co.uk>
Wed, 15 Aug 2018 13:17:18 +0000 (14:17 +0100)
committerJohn Emmas <johne53@tiscali.co.uk>
Wed, 15 Aug 2018 13:17:18 +0000 (14:17 +0100)
gtk2_ardour/plugin_ui.cc

index 444e0a7f0aa754296f6cc4f1bcbb2027c6e2384b..cad8ce9354433efc05b649dbb524051a536ee5b8 100644 (file)
@@ -309,7 +309,7 @@ PluginLoadStatsGui::draw_bar (GdkEventExpose* ev)
                cairo_stroke (cr);
 
                if (xd1 - xd0 > 2) {
-                       const double ym = .5 + floor (y0 + h / 2);
+                       const double ym = .5 + floor ((double)(y0 + h / 2));
                        const int h4 = h / 4;
 
                        cairo_set_line_width (cr, 1);