Commit f9007eef authored by Tobias Hunger's avatar Tobias Hunger Committed by hjk

Fix warnings

Change-Id: I2964fba30da3dc3a4e9d0c8f7709e32dfd8cd5ef
Reviewed-by: default avatarhjk <qthjk@ovi.com>
parent 78c8ed5b
...@@ -273,7 +273,7 @@ ElfReader::Result ElfReader::readIt() ...@@ -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() ...@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment