13
0

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:
John Emmas 2018-03-22 10:54:21 +00:00
parent c177434669
commit 7b42c7e361

View File

@ -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