Browse Source

cmMidi.c : Removed check for negative on unsigned 'rv' in cmSciPitchToMidi().

master
kevin 10 years ago
parent
commit
5c1056299c
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      cmMidi.c

+ 1
- 1
cmMidi.c View File

245
 
245
 
246
   unsigned rv =  (octave*12) + idx + 12;
246
   unsigned rv =  (octave*12) + idx + 12;
247
   
247
   
248
-  if( 0 <= rv && rv <= 127 )
248
+  if( rv <= 127 )
249
     return rv;
249
     return rv;
250
 
250
 
251
   return kInvalidMidiPitch;
251
   return kInvalidMidiPitch;

Loading…
Cancel
Save