src/effects/pitchshift.c: avoid signed/unsigned comparison
authorPaul Brossier <piem@piem.org>
Wed, 21 Sep 2016 09:26:10 +0000 (11:26 +0200)
committerPaul Brossier <piem@piem.org>
Wed, 21 Sep 2016 09:26:10 +0000 (11:26 +0200)
src/effects/pitchshift.c

index 17f4f47..2183569 100644 (file)
@@ -103,7 +103,7 @@ new_aubio_pitchshift (const char_t * mode,
   unsigned int latency = MAX(p->hopsize, rubberband_get_latency(p->rb));
   int available = rubberband_available(p->rb);
   fvec_t *zeros = new_fvec(p->hopsize);
-  while (available <= latency) {
+  while (available <= (int)latency) {
     rubberband_process(p->rb, (const float* const*)&(zeros->data), p->hopsize, 0);
     available = rubberband_available(p->rb);
   }