ref: b5ec06e5ec6d8c98b765bca29b66dc01ac140947
parent: 5173601a2c7a51562d5c34e4acfa29698f4e31f3
author: robs <robs>
date: Sun Mar 22 12:02:26 EDT 2009
quash warnings
--- a/src/dither.c
+++ b/src/dither.c
@@ -191,13 +191,13 @@
else *obuf = i << (32 - p->prec);
++obuf;
if (p->dither_off)
- lsx_debug("flow %u: on @ %u", effp->flow, (unsigned)p->num_output);
+ lsx_debug("flow %u: on @ %u", (unsigned)effp->flow, (unsigned)p->num_output);
p->dither_off = sox_false;
}
else {
*obuf++ = *ibuf++;
if (!p->dither_off)
- lsx_debug("flow %u: off @ %u", effp->flow, (unsigned)p->num_output);
+ lsx_debug("flow %u: off @ %u", (unsigned)effp->flow, (unsigned)p->num_output);
p->dither_off = sox_true;
}
++p->num_output;
--- a/src/dither.h
+++ b/src/dither.h
@@ -38,13 +38,13 @@
++obuf;
if (p->dither_off)
- lsx_debug("flow %u: on @ %u", effp->flow, (unsigned)p->num_output);
+ lsx_debug("flow %u: on @ %u", (unsigned)effp->flow, (unsigned)p->num_output);
p->dither_off = sox_false;
}
else {
*obuf++ = *ibuf++;
if (!p->dither_off) {
- lsx_debug("flow %u: off @ %u", effp->flow, (unsigned)p->num_output);
+ lsx_debug("flow %u: off @ %u", (unsigned)effp->flow, (unsigned)p->num_output);
memset(p->previous_errors, 0, sizeof(p->previous_errors));
memset(p->previous_outputs, 0, sizeof(p->previous_outputs));
}
--- a/src/mp3.c
+++ b/src/mp3.c
@@ -486,7 +486,7 @@
{
priv_t *p = (priv_t *) ft->priv;
unsigned char mp3buffer[7200];
- int written = lame_encode_flush(p->gfp, mp3buffer, sizeof(mp3buffer));
+ int written = lame_encode_flush(p->gfp, mp3buffer, (int)sizeof(mp3buffer));
if (written < 0)
lsx_fail_errno(ft, SOX_EOF, "Encoding failed");