summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoratoktoto <[email protected]>2022-11-21 12:36:50 +0100
committeratoktoto <[email protected]>2022-11-21 12:36:50 +0100
commit3ba03110782747dead880f334f4fd65c03cbca9d (patch)
treefb7c9685e7f5510b85800a4ba37e8e3a709f321b
parent34729b1dc46ef9cee3446e22c88e8484395f1fa7 (diff)
Explicit type conversion
-rw-r--r--src/class/midi/midi_host.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/class/midi/midi_host.c b/src/class/midi/midi_host.c
index 8df1b2005..308120ea2 100644
--- a/src/class/midi/midi_host.c
+++ b/src/class/midi/midi_host.c
@@ -769,7 +769,7 @@ uint32_t tuh_midi_stream_read (uint8_t dev_addr, uint8_t *p_cable_num, uint8_t *
else if (p_midi_host->stream_read.buffer[idx] == MIDI_STATUS_SYSEX_END)
{
++bytes_to_add_to_stream;
- cable_sysex_in_progress &= ~cable_mask;
+ cable_sysex_in_progress &= (uint16_t) ~cable_mask;
idx = 4; // force the loop to exit; I hate break statements in loops
}
}