Fix another gcc warning on older Mac OS.
authorAndre Noll <maan@systemlinux.org>
Mon, 21 Dec 2009 13:30:34 +0000 (14:30 +0100)
committerAndre Noll <maan@systemlinux.org>
Mon, 21 Dec 2009 13:30:34 +0000 (14:30 +0100)
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'

wmadec_filter.c

index 061642aeaa7db199525e87fcda9059c1f939932c..1a4dc5e75bf136e138dd98220a6b838485b91d42 100644 (file)
@@ -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;
        }
                        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,
                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:
        *data_size = (int8_t *)samples - (int8_t *)data;
        return pwd->ahi.block_align;
 fail: