forked from qt-creator/qt-creator
Fix warnings
Change-Id: I2964fba30da3dc3a4e9d0c8f7709e32dfd8cd5ef Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user