You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In file included from ../../dpf/distrho/DistrhoUIMain.cpp:24:
../../dpf/distrho/src/DistrhoUIDSSI.cpp:197:13: error: non-constant-expression cannot be narrowed from type 'int' to 'uint8_t' (aka 'unsigned char') in initializer list
[-Wc++11-narrowing]
channel + (velocity != 0 ? 0x90 : 0x80),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../dpf/distrho/src/DistrhoUIDSSI.cpp:197:13: note: insert an explicit cast to silence this issue
channel + (velocity != 0 ? 0x90 : 0x80),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
static_cast<uint8_t>( )
The text was updated successfully, but these errors were encountered:
In file included from ../../dpf/distrho/DistrhoUIMain.cpp:24:0:
../../dpf/distrho/src/DistrhoUIDSSI.cpp: In member function 'void DISTRHO::UIDssi::sendNote(uint8_t, uint8_t, uint8_t)':
../../dpf/distrho/src/DistrhoUIDSSI.cpp:197:21: warning: narrowing conversion of '(((int)channel) + ((((int)velocity) != 0) ? 144 : 128))' from 'int' to 'uint8_t {aka unsigned char}' inside { } [-Wnarrowing]
channel + (velocity != 0 ? 0x90 : 0x80),
~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
clang-60 prints these errors:
The text was updated successfully, but these errors were encountered: