From 2b45f8986750ba7dcdc695de7c14d9117c983421 Mon Sep 17 00:00:00 2001 From: Francesc Alted Date: Wed, 6 Mar 2019 09:51:03 +0100 Subject: [PATCH] Fix a MSVC 2013 warning --- miniz_zip.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/miniz_zip.c b/miniz_zip.c index ab18cd4..ca958cb 100644 --- a/miniz_zip.c +++ b/miniz_zip.c @@ -2000,7 +2000,7 @@ size_t mz_zip_reader_extract_iter_read(mz_zip_reader_extract_iter_state* pState, if ((pState->flags & MZ_ZIP_FLAG_COMPRESSED_DATA) || (!pState->file_stat.m_method)) { /* The file is stored or the caller has requested the compressed data, calc amount to return. */ - copied_to_caller = MZ_MIN( buf_size, pState->comp_remaining ); + copied_to_caller = (size_t)MZ_MIN( buf_size, pState->comp_remaining ); /* Zip is in memory....or requires reading from a file? */ if (pState->pZip->m_pState->m_pMem)