Fix warnings

Change-Id: I2964fba30da3dc3a4e9d0c8f7709e32dfd8cd5ef
Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
Tobias Hunger
2012-06-12 15:39:45 +02:00
committed by hjk
parent 78c8ed5bb9
commit f9007eefc7

View File

@@ -273,7 +273,7 @@ ElfReader::Result ElfReader::readIt()
return Corrupt; return Corrupt;
} }
for (int i = 0; i < e_shnum; ++i) { for (quint32 i = 0; i < e_shnum; ++i) {
const uchar *s = mapper.ustart + e_shoff + i * e_shentsize; const uchar *s = mapper.ustart + e_shoff + i * e_shentsize;
ElfSectionHeader sh; ElfSectionHeader sh;
parseSectionHeader(s, &sh, m_elfData); parseSectionHeader(s, &sh, m_elfData);
@@ -305,7 +305,7 @@ ElfReader::Result ElfReader::readIt()
} }
if (e_phoff) { if (e_phoff) {
for (int i = 0; i < e_phnum; ++i) { for (quint32 i = 0; i < e_phnum; ++i) {
const uchar *s = mapper.ustart + e_phoff + i * e_phentsize; const uchar *s = mapper.ustart + e_phoff + i * e_phentsize;
ElfProgramHeader ph; ElfProgramHeader ph;
parseProgramHeader(s, &ph, m_elfData); parseProgramHeader(s, &ph, m_elfData);