From 8802e85d41ab5fea1eb5bedf19a520373e483a67 Mon Sep 17 00:00:00 2001 From: Takashi Iwai Date: Wed, 16 Apr 2008 14:43:01 +0200 Subject: [PATCH] aplay - Fix a compile warning MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit aplay.c: In function ‘compute_max_peak’: aplay.c:1327: warning: format ‘%d’ expects type ‘int’, but argument 3 has type ‘size_t’ --- aplay/aplay.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aplay/aplay.c b/aplay/aplay.c index dfa2f77..d8b4772 100644 --- a/aplay/aplay.c +++ b/aplay/aplay.c @@ -1324,7 +1324,7 @@ static void compute_max_peak(u_char *data, size_t count) } default: if (run == 0) { - fprintf(stderr, _("Unsupported bit size %d.\n"), bits_per_sample); + fprintf(stderr, _("Unsupported bit size %d.\n"), (int)bits_per_sample); run = 1; } return;