Converted a size_t to mz_uint that was being treated as an error (#5600)
Co-authored-by: Kim Kulling <kimkulling@users.noreply.github.com>kimkulling/trim_strings_in_xml_parsing_issue-5591
parent
0d546b3d2e
commit
8231d99a85
|
@ -1239,7 +1239,7 @@ int zip_entry_openbyindex(struct zip_t *zip, size_t index) {
|
||||||
if (!(pHeader = &MZ_ZIP_ARRAY_ELEMENT(
|
if (!(pHeader = &MZ_ZIP_ARRAY_ELEMENT(
|
||||||
&pZip->m_pState->m_central_dir, mz_uint8,
|
&pZip->m_pState->m_central_dir, mz_uint8,
|
||||||
MZ_ZIP_ARRAY_ELEMENT(&pZip->m_pState->m_central_dir_offsets,
|
MZ_ZIP_ARRAY_ELEMENT(&pZip->m_pState->m_central_dir_offsets,
|
||||||
mz_uint32, index)))) {
|
mz_uint32, (mz_uint)index)))) {
|
||||||
// cannot find header in central directory
|
// cannot find header in central directory
|
||||||
return ZIP_ENOHDR;
|
return ZIP_ENOHDR;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue