MSVC won't allow floating point types to be mapped directly to enums
authorJohn Emmas <johne53@tiscali.co.uk>
Mon, 6 Jun 2016 08:07:45 +0000 (09:07 +0100)
committerJohn Emmas <johne53@tiscali.co.uk>
Mon, 6 Jun 2016 08:07:45 +0000 (09:07 +0100)
libs/ardour/ardour/monitor_control.h

index 587d8ca58c1d8d652dbbbf4c31b0b9a32c65545f..b18517255ee362b82c3221d3b09c6dcbf05e4f99 100644 (file)
@@ -39,7 +39,7 @@ class LIBARDOUR_API MonitorControl : public SlavableAutomationControl
        MonitorControl (Session& session, std::string const & name, Monitorable& m);
        ~MonitorControl() {}
 
-       MonitorChoice monitoring_choice() const { return static_cast<MonitorChoice> (get_value()); }
+       MonitorChoice monitoring_choice() const { return static_cast<MonitorChoice> ((int)get_value()); }
        MonitorState monitoring_state () const { return _monitorable.monitoring_state(); }
 
        int set_state (XMLNode const&, int);