]> git.alsa-project.org Git - alsa-utils.git/commitdiff
aplay - Fix a compile warning
authorTakashi Iwai <tiwai@suse.de>
Wed, 16 Apr 2008 12:43:01 +0000 (14:43 +0200)
committerTakashi Iwai <tiwai@suse.de>
Wed, 16 Apr 2008 12:43:01 +0000 (14:43 +0200)
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

index dfa2f771dd21bde4aaa213996a5481e701995c07..d8b4772a26649625c0c47ae158e134bddaa4f685 100644 (file)
@@ -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;