diff options
author | Richard Shann <rshann@debianrts.home> | 2011-02-12 16:28:53 +0000 |
---|---|---|
committer | Richard Shann <rshann@debianrts.home> | 2011-02-12 16:28:53 +0000 |
commit | ff2ad0770b15be73b24306a759562580b4ee7921 (patch) | |
tree | 5226375b0e16ed4f430117d98a9d4d67365c6ae7 | |
parent | c9a68440df113cfa14036b84f57c91d752c168da (diff) |
Fix regression in d-GetMidi
-rw-r--r-- | src/view.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -2658,7 +2658,9 @@ SCM scheme_get_midi(void) { gboolean success = intercept_midi_event(&midi); if(!success) midi = 0;/* scripts should detect this impossible value and take action */ - midi &=0xF0;//do not return channel info + gchar *buf = (gchar*)&midi; + *buf &=0xF0;//do not return channel info + SCM scm = scm_int2num (midi); return scm; } |