OSDN Git Service

added parentheses around the ambiguous conditional expression
authorTakashi Iwai <tiwai@suse.de>
Mon, 25 Aug 2003 10:03:38 +0000 (10:03 +0000)
committerTakashi Iwai <tiwai@suse.de>
Mon, 25 Aug 2003 10:03:38 +0000 (10:03 +0000)
to avoid compile warnings.

timidity/playmidi.c

index cd7fc72..55fe5da 100644 (file)
@@ -2931,7 +2931,7 @@ void midi_program_change(int ch, int prog)
                                ? SPECIAL_PROGRAM : prog;
                channel[ch].altassign = NULL;
                ctl_mode_event(CTLE_DRUMPART, 1, ch, 0);
-               if (opt_realtime_playing && play_mode->flag & PF_PCM_STREAM) {
+               if (opt_realtime_playing && (play_mode->flag & PF_PCM_STREAM)) {
                        b = channel[ch].bank, p = prog;
                        instrument_map(channel[ch].mapID, &b, &p);
                        play_midi_load_instrument(0, b, p);