ref: b33e355f68f9e46525fed11e59f2ace02c838ea8
parent: 0b9e1da515c270961254349182b12e52fd15e947
author: Paul Brossier <[email protected]>
date: Sat Jun 3 11:14:44 EDT 2006
fix signed/unsigned mismatches in pitchfcomb fix signed/unsigned mismatches in pitchfcomb
--- a/src/pitchfcomb.c
+++ b/src/pitchfcomb.c
@@ -110,7 +110,7 @@
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;