Skip to content

Commit

Permalink
midi: Fix unneeded left shift for MEVT_F_LONG
Browse files Browse the repository at this point in the history
MEVT_F_LONG is a DWORD type with a value of 0x80000000, so there is no need to left-shit it.
  • Loading branch information
negativeExponent authored and LibretroAdmin committed Jul 18, 2024
1 parent a7bc0ad commit 2dae318
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion midi/drivers/winmm_midi.c
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ static bool winmm_midi_write_long_event(winmm_midi_buffer_t *buf,

buf->data[i++] = delta_time;
buf->data[i++] = 0;
buf->data[i++] = MEVT_F_LONG << 24 | MEVT_LONGMSG << 24 | data_size;
buf->data[i++] = MEVT_F_LONG | MEVT_LONGMSG << 24 | data_size;

memcpy(&buf->data[i], data, data_size);
buf->header.dwBytesRecorded += sizeof(DWORD) * 3 + data_size;
Expand Down

0 comments on commit 2dae318

Please sign in to comment.