aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2021-06-11 13:57:25 -0700
committerElliott Hughes <enh@google.com>2021-06-11 13:57:25 -0700
commit60503d108244382d8ab1d3b2a45ea8a5f915636c (patch)
treed1a1b637245e12a07c3334202f76e677fa8ebad8
parent6673e39fba6122c948c9ec34f07166812d473eb6 (diff)
downloadzopfli-60503d108244382d8ab1d3b2a45ea8a5f915636c.tar.gz
Fix the i686-linux-android build.
Found while trying to update AOSP's copy of zopfli from circa-2015 source: external/zopfli/src/zopfli/cache.c:37:9: error: format specifies type 'unsigned long' but the argument has type 'unsigned int' [-Werror,-Wformat] ZOPFLI_CACHE_LENGTH * 3 * blocksize); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-rw-r--r--src/zopfli/cache.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/zopfli/cache.c b/src/zopfli/cache.c
index f5559c3..6b9444f 100644
--- a/src/zopfli/cache.c
+++ b/src/zopfli/cache.c
@@ -34,7 +34,7 @@ void ZopfliInitCache(size_t blocksize, ZopfliLongestMatchCache* lmc) {
if(lmc->sublen == NULL) {
fprintf(stderr,
"Error: Out of memory. Tried allocating %lu bytes of memory.\n",
- ZOPFLI_CACHE_LENGTH * 3 * blocksize);
+ (unsigned long)ZOPFLI_CACHE_LENGTH * 3 * blocksize);
exit (EXIT_FAILURE);
}