]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/midi-item.cc
Fix compiler warnings.
[lilypond.git] / lily / midi-item.cc
index 263c978d07dbc2eba440f0d2e9119842b0f0311b..547b67a5f0e3c0a11f5655cd32be8ae83568ce30 100644 (file)
@@ -87,7 +87,7 @@ Midi_instrument::to_string () const
   SCM program = scm_call_1 (proc, ly_symbol2scm (audio_->str_.c_str ()));
   found = (program != SCM_BOOL_F);
   if (found)
-    program_byte = scm_to_int (program);
+    program_byte = (Byte) scm_to_int (program);
   else
     warning (_f ("no such MIDI instrument: `%s'", audio_->str_.c_str ()));