@@ -287,7 +287,7 @@ struct mz_zip_internal_state_tag
287
287
mz_zip_array m_sorted_central_dir_offsets ;
288
288
289
289
/* The flags passed in when the archive is initially opened. */
290
- uint32_t m_init_flags ;
290
+ mz_uint32 m_init_flags ;
291
291
292
292
/* MZ_TRUE if the archive has a zip64 end of central directory headers, etc. */
293
293
mz_bool m_zip64 ;
@@ -1348,7 +1348,7 @@ static mz_bool mz_zip_locate_file_binary_search(mz_zip_archive *pZip, const char
1348
1348
const mz_zip_array * pCentral_dir_offsets = & pState -> m_central_dir_offsets ;
1349
1349
const mz_zip_array * pCentral_dir = & pState -> m_central_dir ;
1350
1350
mz_uint32 * pIndices = & MZ_ZIP_ARRAY_ELEMENT (& pState -> m_sorted_central_dir_offsets , mz_uint32 , 0 );
1351
- const uint32_t size = pZip -> m_total_files ;
1351
+ const mz_uint32 size = pZip -> m_total_files ;
1352
1352
const mz_uint filename_len = (mz_uint )strlen (pFilename );
1353
1353
1354
1354
if (pIndex )
@@ -1363,7 +1363,7 @@ static mz_bool mz_zip_locate_file_binary_search(mz_zip_archive *pZip, const char
1363
1363
while (l <= h )
1364
1364
{
1365
1365
mz_int64 m = l + ((h - l ) >> 1 );
1366
- uint32_t file_index = pIndices [(uint32_t )m ];
1366
+ mz_uint32 file_index = pIndices [(mz_uint32 )m ];
1367
1367
1368
1368
int comp = mz_zip_filename_compare (pCentral_dir , pCentral_dir_offsets , file_index , pFilename , filename_len );
1369
1369
if (!comp )
@@ -2112,7 +2112,7 @@ size_t mz_zip_reader_extract_iter_read(mz_zip_reader_extract_iter_state* pState,
2112
2112
size_t to_copy = MZ_MIN ( (buf_size - copied_to_caller ), pState -> out_blk_remain );
2113
2113
2114
2114
/* Copy data to caller's buffer */
2115
- memcpy ( (uint8_t * )pvBuf + copied_to_caller , pWrite_buf_cur , to_copy );
2115
+ memcpy ( (mz_uint8 * )pvBuf + copied_to_caller , pWrite_buf_cur , to_copy );
2116
2116
2117
2117
#ifndef MINIZ_DISABLE_ZIP_READER_CRC32_CHECKS
2118
2118
/* Perform CRC */
@@ -2481,7 +2481,7 @@ mz_bool mz_zip_validate_file(mz_zip_archive *pZip, mz_uint file_index, mz_uint f
2481
2481
mz_bool mz_zip_validate_archive (mz_zip_archive * pZip , mz_uint flags )
2482
2482
{
2483
2483
mz_zip_internal_state * pState ;
2484
- uint32_t i ;
2484
+ mz_uint32 i ;
2485
2485
2486
2486
if ((!pZip ) || (!pZip -> m_pState ) || (!pZip -> m_pAlloc ) || (!pZip -> m_pFree ) || (!pZip -> m_pRead ))
2487
2487
return mz_zip_set_error (pZip , MZ_ZIP_INVALID_PARAMETER );
@@ -3875,7 +3875,7 @@ mz_bool mz_zip_writer_add_file(mz_zip_archive *pZip, const char *pArchive_name,
3875
3875
}
3876
3876
#endif /* #ifndef MINIZ_NO_STDIO */
3877
3877
3878
- static mz_bool mz_zip_writer_update_zip64_extension_block (mz_zip_array * pNew_ext , mz_zip_archive * pZip , const mz_uint8 * pExt , uint32_t ext_len , mz_uint64 * pComp_size , mz_uint64 * pUncomp_size , mz_uint64 * pLocal_header_ofs , mz_uint32 * pDisk_start )
3878
+ static mz_bool mz_zip_writer_update_zip64_extension_block (mz_zip_array * pNew_ext , mz_zip_archive * pZip , const mz_uint8 * pExt , mz_uint32 ext_len , mz_uint64 * pComp_size , mz_uint64 * pUncomp_size , mz_uint64 * pLocal_header_ofs , mz_uint32 * pDisk_start )
3879
3879
{
3880
3880
/* + 64 should be enough for any new zip64 data */
3881
3881
if (!mz_zip_array_reserve (pZip , pNew_ext , ext_len + 64 , MZ_FALSE ))
0 commit comments