mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-11 07:12:02 +00:00
Fixed MSVC compilation warning
VC\include\type_traits(1468): warning C4800: 'int': forcing value to bool 'true' or 'false' (performance warning) src\sound\musicformats\music_midistream.cpp(832): note: see reference to function template instantiation 'std::function<bool (int)>::function<MIDIStreamer::SetMIDISource::<lambda_...>,int,void>(_Fx)' being compiled
This commit is contained in:
parent
14802c0547
commit
4fdf488960
1 changed files with 1 additions and 1 deletions
|
@ -829,7 +829,7 @@ uint32_t *MIDIStreamer::WriteStopNotes(uint32_t *events)
|
|||
void MIDIStreamer::SetMIDISource(MIDISource *_source)
|
||||
{
|
||||
source = _source;
|
||||
source->setTempoCallback([=](int tempo) { return MIDI->SetTempo(tempo); } );
|
||||
source->setTempoCallback([=](int tempo) { return !!MIDI->SetTempo(tempo); } );
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue