Silence some compiler warnings.

This commit is contained in:
Markus F.X.J. Oberhumer
2017-07-23 02:44:47 +02:00
parent b72e0f3060
commit ef8a7f330d
4 changed files with 20 additions and 18 deletions
+1 -1
View File
@@ -82,7 +82,7 @@ void PackLinuxElf32x86interp::pack1(OutputFile *fo, Filter &)
assert(ehdri.e_phoff == sizeof(Elf32_Ehdr)); // checked by canPack()
sz_phdrs = ehdri.e_phnum * ehdri.e_phentsize;
phdri = new Elf32_Phdr[(unsigned)ehdri.e_phnum];
phdri = New(Elf32_Phdr, ehdri.e_phnum);
fi->seek(ehdri.e_phoff, SEEK_SET);
fi->readx(phdri, sz_phdrs);