From 2c4b835fe1c6ad10ff16aa96140ff17a69282a43 Mon Sep 17 00:00:00 2001 From: zlago Date: Wed, 9 Oct 2024 20:21:58 +0200 Subject: emscripten support --- src/zip.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/zip.c') diff --git a/src/zip.c b/src/zip.c index 76820b5..97ef028 100644 --- a/src/zip.c +++ b/src/zip.c @@ -61,7 +61,7 @@ struct zip_file *zip_index(char *const restrict file, size_t const size, int *co static struct zip_footer *zip_find_footer(char *const file, size_t const size, int *const error) { // check if zip file is too big, and if size_t can store values bigger than a max* size zip file - if ((size_t) 1 << 32 && size >= (size_t) 1 << 32) { + if ((size_t) 1 << 31 << 1 && size >= (size_t) 1 << 31 << 1) { *error = ZIP_BIG; return NULL; } -- cgit 1.4.1-2-gfad0