From 4fdf488960d8cf93ecf07de012b0addde2c799c7 Mon Sep 17 00:00:00 2001 From: "alexey.lysiuk" Date: Mon, 26 Feb 2018 13:22:36 +0200 Subject: [PATCH] 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::function,int,void>(_Fx)' being compiled --- src/sound/musicformats/music_midistream.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sound/musicformats/music_midistream.cpp b/src/sound/musicformats/music_midistream.cpp index 207ea51a05..989dc6af79 100644 --- a/src/sound/musicformats/music_midistream.cpp +++ b/src/sound/musicformats/music_midistream.cpp @@ -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); } ); }