From 5c1056299c93cb5e5a4e4b105c4285afc9fde7ee Mon Sep 17 00:00:00 2001 From: kevin Date: Tue, 18 Nov 2014 16:54:37 -0800 Subject: [PATCH] cmMidi.c : Removed check for negative on unsigned 'rv' in cmSciPitchToMidi(). --- cmMidi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmMidi.c b/cmMidi.c index 1f666a1..b3a7dd8 100644 --- a/cmMidi.c +++ b/cmMidi.c @@ -245,7 +245,7 @@ cmMidiByte_t cmSciPitchToMidi( const char* sciPitchStr ) unsigned rv = (octave*12) + idx + 12; - if( 0 <= rv && rv <= 127 ) + if( rv <= 127 ) return rv; return kInvalidMidiPitch;