diff --git a/src/p_mach.cpp b/src/p_mach.cpp index d1262321..29de6cae 100644 --- a/src/p_mach.cpp +++ b/src/p_mach.cpp @@ -1774,8 +1774,8 @@ int PackMachBase::canUnpack() if ( 0==p[0] // p_info.p_progid && 0!=p[1] // p_info.p_filesize && p[2]==p[1] // p_info.p_blocksize == p_info.p_filesize - && file_size < get_te32(&p[1]) // compression was worthwhile - && sz_mach_headers==get_te32(&p[3]) // b_info.sz_unc + && (TE32)file_size < get_te32(&p[1]) // compression was worthwhile + && sz_mach_headers== get_te32(&p[3]) // b_info.sz_unc ) { overlay_offset = ((char const *)p - (char const *)&buf2[0]) + sz_mach_headers; if (!(3&overlay_offset // not word aligned