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

src/pitchfcomb.c

index db72b0e91552256de5f5f37a781da12acccc794b..7b39dc9efe3d29a1dca6fcb8ec52bf0665d68432 100644 (file)
@@ -110,7 +110,7 @@ smpl_t aubio_pitchfcomb_detect (aubio_pitchfcomb_t * p, fvec_t * input)
     for (harmonic=5; harmonic>1; harmonic--) {
       if (peaks[0].freq / peaks[l].freq < harmonic+.02 &&
        peaks[0].freq / peaks[l].freq > harmonic-.02) {
-        if (harmonic > maxharm &&
+        if (harmonic > (sint_t)maxharm &&
          peaks[0].db < peaks[l].db/2) {
           maxharm = harmonic;
          k = l;