From 98893c5d94c507581a503638ca0e73ee6d573fde Mon Sep 17 00:00:00 2001 From: Paul Brossier Date: Sat, 3 Jun 2006 15:15:07 +0000 Subject: [PATCH] fix signed/unsigned mismatches in pitchscmitt fix signed/unsigned mismatches in pitchscmitt --- src/pitchschmitt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pitchschmitt.c b/src/pitchschmitt.c index 04cf0179..0e356065 100644 --- a/src/pitchschmitt.c +++ b/src/pitchschmitt.c @@ -61,7 +61,7 @@ smpl_t aubio_schmittS16LE (aubio_pitchschmitt_t *p, uint_t nframes, signed short for (i=0; i= blockSize) { + if (schmittPointer-schmittBuffer >= (sint_t)blockSize) { sint_t endpoint, startpoint, t1, t2, A1, A2, tc, schmittTriggered; schmittPointer = schmittBuffer; -- 2.26.2