From 2bf866c83181a93eb306b73b984c34c3acbac949 Mon Sep 17 00:00:00 2001 From: rfl890 <87506407+rfl890@users.noreply.github.com> Date: Sat, 10 Aug 2024 21:42:15 +0500 Subject: [PATCH] Fix printf compiler warning --- src/zopfli/cache.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/zopfli/cache.c b/src/zopfli/cache.c index 6b9444f0..e5934df4 100644 --- a/src/zopfli/cache.c +++ b/src/zopfli/cache.c @@ -33,8 +33,8 @@ void ZopfliInitCache(size_t blocksize, ZopfliLongestMatchCache* lmc) { lmc->sublen = (unsigned char*)malloc(ZOPFLI_CACHE_LENGTH * 3 * blocksize); if(lmc->sublen == NULL) { fprintf(stderr, - "Error: Out of memory. Tried allocating %lu bytes of memory.\n", - (unsigned long)ZOPFLI_CACHE_LENGTH * 3 * blocksize); + "Error: Out of memory. Tried allocating %zu bytes of memory.\n", + ZOPFLI_CACHE_LENGTH * 3 * blocksize); exit (EXIT_FAILURE); }