Fix warning.
authorCarl Hetherington <carl@carlh.net>
Sun, 25 Mar 2012 19:45:39 +0000 (19:45 +0000)
committerCarl Hetherington <carl@carlh.net>
Sun, 25 Mar 2012 19:45:39 +0000 (19:45 +0000)
git-svn-id: svn://localhost/ardour2/branches/3.0@11759 d708f5d6-7413-0410-9779-e7cbd77b26cf

gtk2_ardour/generic_pluginui.cc

index af294e89c27392819e5489b2aa88b79208e340d5..3f8d0f63c95c19874c3bea146e866acfbf821f78 100644 (file)
@@ -518,7 +518,7 @@ GenericPluginUI::build_control_ui (guint32 port_index, boost::shared_ptr<Automat
                */
                int const steps = desc.integer_step ? (desc.upper - desc.lower + 1) / desc.step : 0;
 
-               if (control_ui->scale_points && ((steps && control_ui->scale_points->size() == steps) || desc.enumeration)) {
+               if (control_ui->scale_points && ((steps && int (control_ui->scale_points->size()) == steps) || desc.enumeration)) {
                        
                        /* Either:
                         *   a) There is a label for each possible value of this input, or