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

Silence a gcc-4.6 compiler warning.

This commit is contained in:
Markus F.X.J. Oberhumer 2019-02-25 13:41:54 +01:00
parent 423f1a8758
commit c2aa5c35f7

View File

@ -1432,9 +1432,9 @@ void PeFile::processLoadConf(Interval *iv) // pass 1
soloadconf = get_le32(loadconf);
if (soloadconf == 0)
return;
static int const MAX_SOLOADCONF = 256; // XXX FIXME: Why?
static unsigned const MAX_SOLOADCONF = 256; // XXX FIXME: Why?
if (soloadconf > MAX_SOLOADCONF)
info("Load Configuration directory %d > %d", soloadconf, MAX_SOLOADCONF);
info("Load Configuration directory %u > %u", soloadconf, MAX_SOLOADCONF);
// if there were relocation entries referring to the load config table
// then we need them for the copy of the table too