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

Avoid warning.

committer: mfx <mfx> 1109669763 +0000
This commit is contained in:
Markus F.X.J. Oberhumer 2005-03-01 09:36:03 +00:00
parent 232754b978
commit 56d09bf3b5

View File

@ -465,7 +465,7 @@ off_t PackLinuxI386::getbase(const Elf32_Phdr *phdr, int e_phnum) const
off_t base = ~0u;
for (int j = 0; j < e_phnum; ++phdr, ++j) {
if (phdr->PT_LOAD == phdr->p_type) {
if ((unsigned)phdr->p_vaddr < base)
if (phdr->p_vaddr < (unsigned) base)
base = phdr->p_vaddr;
}
}