From c553c9e0439eac2e0e03c9e948698e192ef63234 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Mon, 7 Dec 2009 18:43:26 +0100 Subject: [PATCH] Fix two gcc warnings on MAC OS. This fixes: wma_common.c:41: warning: format '%zd' expects type 'signed size_t', but argument 5 has type 'int' wma_common.c:59: warning: format '%0zx' expects type 'size_t', but argument 4 has type 'int' --- wma_common.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wma_common.c b/wma_common.c index dab96257..10633b5b 100644 --- a/wma_common.c +++ b/wma_common.c @@ -38,7 +38,7 @@ const char *search_pattern(const char *pattern, int pattern_len, for (p = buf; p + pattern_len < end; p++) { if (memcmp(p, pattern, pattern_len)) continue; - PARA_DEBUG_LOG("found %d byte pattern@%zd\n", + PARA_DEBUG_LOG("found %d byte pattern@%d\n", pattern_len, p - buf); return p; } @@ -56,7 +56,7 @@ static int find_audio_stream_info(const char *buf, int len) if (!p) return -E_WMA_NO_GUID; - PARA_DEBUG_LOG("found audio stream guid@%0zx\n", p - buf); + PARA_DEBUG_LOG("found audio stream guid@%0x\n", p - buf); return p - buf + 16; } -- 2.39.5