From: Paul Brossier Date: Sat, 3 Jun 2006 15:14:44 +0000 (+0000) Subject: fix signed/unsigned mismatches in pitchfcomb X-Git-Tag: bzr2git~659 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=b33e355f68f9e46525fed11e59f2ace02c838ea8;p=aubio.git fix signed/unsigned mismatches in pitchfcomb fix signed/unsigned mismatches in pitchfcomb --- diff --git a/src/pitchfcomb.c b/src/pitchfcomb.c index db72b0e9..7b39dc9e 100644 --- a/src/pitchfcomb.c +++ b/src/pitchfcomb.c @@ -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;