From 7b42c7e361bbfa1e7e461cce16409cdfeb9e4dde Mon Sep 17 00:00:00 2001 From: John Emmas Date: Thu, 22 Mar 2018 10:54:21 +0000 Subject: MSVC won't allow us to cast directly from float to an enum. We need to kludge it by first casting to an integer type (is it safe to be casting from float to enum anyway??) --- libs/surfaces/osc/osc.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/surfaces/osc/osc.cc b/libs/surfaces/osc/osc.cc index ae96774a52..7c46f5bf6c 100644 --- a/libs/surfaces/osc/osc.cc +++ b/libs/surfaces/osc/osc.cc @@ -1378,7 +1378,7 @@ OSC::custom_clear (lo_message msg) int OSC::custom_mode (float state, lo_message msg) { - return _custom_mode ((OSCCustomMode) state, get_address (msg)); + return _custom_mode ((OSCCustomMode) (int)state, get_address (msg)); } int -- cgit v1.2.3