summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Shann <rshann@debianrts.home>2011-02-12 16:28:53 +0000
committerRichard Shann <rshann@debianrts.home>2011-02-12 16:28:53 +0000
commitff2ad0770b15be73b24306a759562580b4ee7921 (patch)
tree5226375b0e16ed4f430117d98a9d4d67365c6ae7
parentc9a68440df113cfa14036b84f57c91d752c168da (diff)
Fix regression in d-GetMidi
-rw-r--r--src/view.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/view.c b/src/view.c
index c655ba21..bd3fbe2f 100644
--- a/src/view.c
+++ b/src/view.c
@@ -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;
}