summaryrefslogtreecommitdiffstats
path: root/sbc/sbcdec.c
diff options
context:
space:
mode:
Diffstat (limited to 'sbc/sbcdec.c')
-rw-r--r--sbc/sbcdec.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sbc/sbcdec.c b/sbc/sbcdec.c
index b6635ed2..1d67f86f 100644
--- a/sbc/sbcdec.c
+++ b/sbc/sbcdec.c
@@ -49,7 +49,8 @@ static void decode(char *filename, char *output, int tofile)
struct stat st;
off_t filesize;
sbc_t sbc;
- int fd, ad, pos, streamlen, framelen, count, len;
+ int fd, ad, pos, streamlen, framelen, count;
+ size_t len;
int format = AFMT_S16_BE, frequency, channels;
ssize_t written;
@@ -187,7 +188,7 @@ static void decode(char *filename, char *output, int tofile)
if (count + len >= BUF_SIZE) {
fprintf(stderr,
"buffer size of %d is too small for decoded"
- " data (%d)\n", BUF_SIZE, len + count);
+ " data (%lu)\n", BUF_SIZE, (unsigned long) (len + count));
exit(1);
}