1
0
mirror of https://github.com/upx/upx synced 2025-10-05 19:20:23 +08:00

MSVC error C4146: unary minus operator applied to unsigned type, result still unsigned

modified:   p_lx_elf.cpp
This commit is contained in:
John Reiser 2022-12-19 16:14:48 -08:00 committed by Markus F.X.J. Oberhumer
parent 8ccffc40e3
commit f2a68023fa

View File

@ -5408,7 +5408,7 @@ void PackLinuxElf64::unpack(OutputFile *fo)
{ // Recover from some piracy [also serves as error tolerance :-) ] { // Recover from some piracy [also serves as error tolerance :-) ]
b_info b_peek; b_info b_peek;
fi->readx(&b_peek, sizeof(b_peek)); fi->readx(&b_peek, sizeof(b_peek));
upx_off_t pos = fi->seek(-sizeof(b_peek), SEEK_CUR); upx_off_t pos = fi->seek(0u - sizeof(b_peek), SEEK_CUR);
if (b_peek.sz_unc != size if (b_peek.sz_unc != size
|| b_peek.b_method != prev_method) { || b_peek.b_method != prev_method) {
opt->info_mode++; opt->info_mode++;