From: Takashi Iwai Date: Wed, 16 Apr 2008 12:43:01 +0000 (+0200) Subject: aplay - Fix a compile warning X-Git-Tag: v1.0.17rc1~6 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=8802e85d41ab5fea1eb5bedf19a520373e483a67;p=alsa-utils.git aplay - Fix a compile warning aplay.c: In function ‘compute_max_peak’: aplay.c:1327: warning: format ‘%d’ expects type ‘int’, but argument 3 has type ‘size_t’ --- 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;