diff options
author | David Robillard <d@drobilla.net> | 2022-05-26 13:27:22 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2022-05-26 13:27:22 -0400 |
commit | 52650784331844f8a92c5e9c4ba443a468743867 (patch) | |
tree | d3e5477eeb641344466d2994b1d052defff69f36 /lv2/midi | |
parent | ec24b754f1fa81f05b011a444a1dd8d67d066d31 (diff) | |
download | lv2-52650784331844f8a92c5e9c4ba443a468743867.tar.xz |
Suppress new warnings in clang-tidy 13
Diffstat (limited to 'lv2/midi')
-rw-r--r-- | lv2/midi/midi.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lv2/midi/midi.h b/lv2/midi/midi.h index 2c70f0c..f7e0500 100644 --- a/lv2/midi/midi.h +++ b/lv2/midi/midi.h @@ -215,7 +215,7 @@ lv2_midi_is_system_message(const uint8_t* msg) case 0xFD: return false; default: - return (msg[0] & 0xF0) == 0xF0; + return (msg[0] & 0xF0u) == 0xF0u; } } @@ -227,7 +227,7 @@ static inline LV2_Midi_Message_Type lv2_midi_message_type(const uint8_t* msg) { if (lv2_midi_is_voice_message(msg)) { - return (LV2_Midi_Message_Type)(msg[0] & 0xF0); + return (LV2_Midi_Message_Type)(msg[0] & 0xF0u); } if (lv2_midi_is_system_message(msg)) { |