shithub: sox

Download patch

ref: fa80a671a7ce6198fb0f904a7cc1b4d716d70d7e
parent: d6a5788b14e6f7bac54b9cab19b70af137c34e4d
author: robs <robs>
date: Sat Jan 24 15:03:06 EST 2009

fix warning

--- a/src/alsa.c
+++ b/src/alsa.c
@@ -133,7 +133,7 @@
   for (done = 0; done < len; done += n) {
     do {
       n = snd_pcm_readi(p->pcm, p->buf, (len - done) / ft->signal.channels);
-      if (n < 0 && recover(ft, p->pcm, n) < 0)
+      if (n < 0 && recover(ft, p->pcm, (int)n) < 0)
         return 0;
     } while (n <= 0);
 
@@ -234,7 +234,7 @@
           p->pcm, p->buf + i * NBYTES, (n - i) / ft->signal.channels);
       if (errno == EAGAIN)     /* Happens naturally; don't report it: */
         errno = 0;
-      if (actual < 0 && recover(ft, p->pcm, actual) < 0)
+      if (actual < 0 && recover(ft, p->pcm, (int)actual) < 0)
         return 0;
     } while (actual < 0);
   }