From: Andre Noll Date: Mon, 21 Dec 2009 13:30:34 +0000 (+0100) Subject: Fix another gcc warning on older Mac OS. X-Git-Tag: v0.4.1~4 X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=commitdiff_plain;h=9f7aecdbca21d6cadfe36ac46f6f0dada92ce8f2;hp=8b8a81f7faf8faec7a14ebfca4ce2e5c6ad3ac40 Fix another gcc warning on older Mac OS. Fixes wmadec_filter.c: In function 'wma_decode_superframe': wmadec_filter.c:1182: warning: format '%zd' expects type 'signed size_t', but argument 6 has type 'int' --- diff --git a/wmadec_filter.c b/wmadec_filter.c index 061642ae..1a4dc5e7 100644 --- a/wmadec_filter.c +++ b/wmadec_filter.c @@ -1179,9 +1179,9 @@ static int wma_decode_superframe(struct private_wmadec_data *pwd, void *data, goto fail; samples += pwd->ahi.channels * pwd->frame_len; } - PARA_DEBUG_LOG("frame_len: %d, block_len: %d, outbytes: %zd, eaten: %d\n", + PARA_DEBUG_LOG("frame_len: %d, block_len: %d, outbytes: %d, eaten: %d\n", pwd->frame_len, pwd->block_len, - (int8_t *) samples - (int8_t *) data, pwd->ahi.block_align); + (int)((int8_t *)samples - (int8_t *)data), pwd->ahi.block_align); *data_size = (int8_t *)samples - (int8_t *)data; return pwd->ahi.block_align; fail: