mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-23 21:57:16 +01:00
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
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue