mirror of
https://github.com/tildearrow/furnace.git
synced 2024-11-23 04:55:13 +00:00
fix Windows build
how did CI let this through?!
This commit is contained in:
parent
456db22f9d
commit
d0b236ca9e
1 changed files with 2 additions and 2 deletions
4
extern/rtmidi/RtMidi.cpp
vendored
4
extern/rtmidi/RtMidi.cpp
vendored
|
@ -2728,7 +2728,7 @@ void MidiInWinMM :: openPort( unsigned int portNumber, const std::string &/*port
|
|||
|
||||
// Allocate and init the sysex buffers.
|
||||
data->sysexBuffer.resize( inputData_.bufferCount );
|
||||
for ( int i=0; i < inputData_.bufferCount; ++i ) {
|
||||
for ( unsigned int i=0; i < inputData_.bufferCount; ++i ) {
|
||||
data->sysexBuffer[i] = (MIDIHDR*) new char[ sizeof(MIDIHDR) ];
|
||||
data->sysexBuffer[i]->lpData = new char[ inputData_.bufferSize ];
|
||||
data->sysexBuffer[i]->dwBufferLength = inputData_.bufferSize;
|
||||
|
@ -2782,7 +2782,7 @@ void MidiInWinMM :: closePort( void )
|
|||
midiInReset( data->inHandle );
|
||||
midiInStop( data->inHandle );
|
||||
|
||||
for ( int i=0; i < data->sysexBuffer.size(); ++i ) {
|
||||
for ( size_t i=0; i < data->sysexBuffer.size(); ++i ) {
|
||||
int result = midiInUnprepareHeader(data->inHandle, data->sysexBuffer[i], sizeof(MIDIHDR));
|
||||
delete [] data->sysexBuffer[i]->lpData;
|
||||
delete [] data->sysexBuffer[i];
|
||||
|
|
Loading…
Reference in a new issue