fix signed/unsigned mismatches in pitchscmitt
authorPaul Brossier <piem@altern.org>
Sat, 3 Jun 2006 15:15:07 +0000 (15:15 +0000)
committerPaul Brossier <piem@altern.org>
Sat, 3 Jun 2006 15:15:07 +0000 (15:15 +0000)
fix signed/unsigned mismatches in pitchscmitt

src/pitchschmitt.c

index 04cf0179817718e22b64b78d9bb1979d94abf39f..0e356065a6802a1c732341416a40d93511149909 100644 (file)
@@ -61,7 +61,7 @@ smpl_t aubio_schmittS16LE (aubio_pitchschmitt_t *p, uint_t nframes, signed short
 
   for (i=0; i<nframes; i++) {
     *schmittPointer++ = indata[i];
-    if (schmittPointer-schmittBuffer >= blockSize) {
+    if (schmittPointer-schmittBuffer >= (sint_t)blockSize) {
       sint_t endpoint, startpoint, t1, t2, A1, A2, tc, schmittTriggered;
 
       schmittPointer = schmittBuffer;