From: Paul Brossier Date: Sat, 3 Jun 2006 15:15:07 +0000 (+0000) Subject: fix signed/unsigned mismatches in pitchscmitt X-Git-Tag: bzr2git~658 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=98893c5d94c507581a503638ca0e73ee6d573fde;p=aubio.git fix signed/unsigned mismatches in pitchscmitt fix signed/unsigned mismatches in pitchscmitt --- 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;