1
0
mirror of https://github.com/upx/upx synced 2025-09-28 19:06:07 +08:00

MSVC barfs on {unsigned == long int) [because sizeof() is the same!]

https://github.com/upx/upx/issues/283
	modified:   p_lx_elf.cpp
This commit is contained in:
John Reiser 2019-07-14 13:39:09 -07:00
parent 62a07df45e
commit 23570097cf

View File

@ -3842,7 +3842,7 @@ int PackLinuxElf32::pack2(OutputFile *fo, Filter &ft)
if (ft.id < 0x40) {
// FIXME: ?? ft.addvalue += asl_delta;
}
if (delta == x.size) { // PT_LOAD[0] with ElfXX.Ehdr only
if ((off_t)delta == x.size) { // PT_LOAD[0] with ElfXX.Ehdr only
// QBE backend - http://c9x.me/compile/
hdr_u_len = 0; // no fiddling necessary!
// &ft arg to packExtent will be zero becaue (k != nk_f)
@ -3973,7 +3973,7 @@ int PackLinuxElf64::pack2(OutputFile *fo, Filter &ft)
if (ft.id < 0x40) {
// FIXME: ?? ft.addvalue += asl_delta;
}
if (delta == x.size) { // PT_LOAD[0] with ElfXX.Ehdr only
if ((off_t)delta == x.size) { // PT_LOAD[0] with ElfXX.Ehdr only
// QBE backend - http://c9x.me/compile/
hdr_u_len = 0; // no fiddling necessary!
// &ft arg to packExtent will be zero becaue (k != nk_f)