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:
alexey.lysiuk 2018-02-26 13:22:36 +02:00
parent 14802c0547
commit 4fdf488960

View file

@ -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); } );
}