X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Fmidi-item.cc;h=547b67a5f0e3c0a11f5655cd32be8ae83568ce30;hb=88d889df8b347cb0d0365555569f26c37ba59840;hp=8da2cd3b6fa762b64cec3c8327b1d98f93db6e41;hpb=b7a0cffbf9d1069860368f289a5b50e9d1d90ba8;p=lilypond.git diff --git a/lily/midi-item.cc b/lily/midi-item.cc index 8da2cd3b6f..547b67a5f0 100644 --- a/lily/midi-item.cc +++ b/lily/midi-item.cc @@ -1,7 +1,7 @@ /* This file is part of LilyPond, the GNU music typesetter. - Copyright (C) 1997--2009 Jan Nieuwenhuizen + Copyright (C) 1997--2010 Jan Nieuwenhuizen LilyPond is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -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 ()));