summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrppicomidi <[email protected]>2025-03-18 07:42:47 -0700
committerrppicomidi <[email protected]>2025-03-18 07:42:47 -0700
commit62f00bdf5d8b2a5941aed3d96865bbe24b117455 (patch)
treeceb2e07d8e3d4af597e3b5b7910550a95223f90a /src
parent5ecea4eefe13ea93095da710dfcf3b3fee578c8e (diff)
Fix compiler conversion error warning
Diffstat (limited to 'src')
-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 d6d204b7b..85253f5ca 100644
--- a/src/class/midi/midi_host.c
+++ b/src/class/midi/midi_host.c
@@ -361,7 +361,7 @@ bool tuh_midi_itf_get_info(uint8_t idx, tuh_itf_info_t* info) {
desc->bInterfaceNumber = p_midi->bInterfaceNumber;
desc->bAlternateSetting = 0;
- desc->bNumEndpoints = (p_midi->ep_in != 0 ? 1:0) + (p_midi->ep_out != 0 ? 1:0);
+ desc->bNumEndpoints = (uint8_t)((p_midi->ep_in != 0 ? 1:0) + (p_midi->ep_out != 0 ? 1:0));
desc->bInterfaceClass = TUSB_CLASS_AUDIO;
desc->bInterfaceSubClass = AUDIO_SUBCLASS_MIDI_STREAMING;
desc->bInterfaceProtocol = 0;