Use upx_uint16_t instead of unsigned short.
This commit is contained in:
+1
-1
@@ -561,7 +561,7 @@ void PackMachBase<T>::patchLoaderChecksum()
|
||||
// checksum for loader; also some PackHeader info
|
||||
lp->l_checksum = 0;
|
||||
lp->l_magic = UPX_MAGIC_LE32; // LE32 always
|
||||
set_te16(&lp->l_lsize, (unsigned short) lsize);
|
||||
set_te16(&lp->l_lsize, (upx_uint16_t) lsize);
|
||||
lp->l_version = (unsigned char) ph.version;
|
||||
lp->l_format = (unsigned char) ph.format;
|
||||
// INFO: lp->l_checksum is currently unused
|
||||
|
||||
Reference in New Issue
Block a user