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
1 changed files with 1 additions and 1 deletions

View File

@ -5408,7 +5408,7 @@ void PackLinuxElf64::unpack(OutputFile *fo)
{ // Recover from some piracy [also serves as error tolerance :-) ]
b_info 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
|| b_peek.b_method != prev_method) {
opt->info_mode++;