diff options
author | Charles Pigott <charlespigott@googlemail.com> | 2019-08-03 09:09:21 +0100 |
---|---|---|
committer | Charles Pigott <charlespigott@googlemail.com> | 2019-09-30 14:00:06 +0100 |
commit | 7b400d43c16dfea76ea3cebbe436281915f65dea (patch) | |
tree | 468060729209b85b69708dcc8b06f1598c60735b /src/music | |
parent | b839e355ba6f369a61d15753dc1357e170dcb7d0 (diff) | |
download | openttd-7b400d43c16dfea76ea3cebbe436281915f65dea.tar.xz |
Codechange: Fix warning about discarding qualifiers by *really* casting the variable
Diffstat (limited to 'src/music')
-rw-r--r-- | src/music/win32_m.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/music/win32_m.cpp b/src/music/win32_m.cpp index 777f1185e..da26dfb6d 100644 --- a/src/music/win32_m.cpp +++ b/src/music/win32_m.cpp @@ -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 */ |