summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Emmas <johne53@tiscali.co.uk>2018-03-22 10:54:21 +0000
committerJohn Emmas <johne53@tiscali.co.uk>2018-03-22 10:54:21 +0000
commit7b42c7e361bbfa1e7e461cce16409cdfeb9e4dde (patch)
treec8b5778acc7a922dd3c88ee414081acf3a7dbee9
parentc177434669dc88a65e707f4b2eac23238e005281 (diff)
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??)
-rw-r--r--libs/surfaces/osc/osc.cc2
1 files changed, 1 insertions, 1 deletions
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