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??)
This commit is contained in:
parent
c177434669
commit
7b42c7e361
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user