mirror of https://github.com/OpenTTD/OpenTTD.git
Codechange: Fix warning about discarding qualifiers by *really* casting the variable
This commit is contained in:
parent
b839e355ba
commit
7b400d43c1
|
@ -83,7 +83,7 @@ static void TransmitSysex(const byte *&msg_start, size_t &remaining)
|
|||
|
||||
/* prepare header */
|
||||
MIDIHDR *hdr = CallocT<MIDIHDR>(1);
|
||||
hdr->lpData = (LPSTR)msg_start;
|
||||
hdr->lpData = reinterpret_cast<LPSTR>(const_cast<byte *>(msg_start));
|
||||
hdr->dwBufferLength = msg_end - msg_start;
|
||||
if (midiOutPrepareHeader(_midi.midi_out, hdr, sizeof(*hdr)) == MMSYSERR_NOERROR) {
|
||||
/* transmit - just point directly into the data buffer */
|
||||
|
|
Loading…
Reference in New Issue