diff options
author | Arvid Ephraim Picciani <arvid.picciani@nokia.com> | 2010-10-22 15:10:35 (GMT) |
---|---|---|
committer | Arvid Ephraim Picciani <arvid.picciani@nokia.com> | 2010-10-22 15:17:00 (GMT) |
commit | 59a6ea0e4bde610dd55f735367a1097b79cc4383 (patch) | |
tree | f76fcbf9fde27dec11807c1dd37b25b2b54c5f2d /src/corelib/plugin/qelfparser_p.cpp | |
parent | 0e47bb7df6f2cd0ad61e3769d98c1ddf1cc6d30c (diff) | |
download | Qt-59a6ea0e4bde610dd55f735367a1097b79cc4383.zip Qt-59a6ea0e4bde610dd55f735367a1097b79cc4383.tar.gz Qt-59a6ea0e4bde610dd55f735367a1097b79cc4383.tar.bz2 |
Fix compiler warnings in qelfparser
from magical conversion to signed int in arithmetics
Reviewed-by: Friedemann Kleint
Diffstat (limited to 'src/corelib/plugin/qelfparser_p.cpp')
-rw-r--r-- | src/corelib/plugin/qelfparser_p.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/corelib/plugin/qelfparser_p.cpp b/src/corelib/plugin/qelfparser_p.cpp index 2e77ae7..4ae7f85 100644 --- a/src/corelib/plugin/qelfparser_p.cpp +++ b/src/corelib/plugin/qelfparser_p.cpp @@ -139,7 +139,7 @@ int QElfParser::parse(const char *dataStart, ulong fdlen, const QString &library qelfhalf_t e_shtrndx = read<qelfhalf_t> (data); data += sizeof(qelfhalf_t); // e_shtrndx - if ((e_shnum * e_shentsize) > fdlen) { + if ((quint32)(e_shnum * e_shentsize) > fdlen) { if (lib) lib->errorString = QLibrary::tr("'%1' is an invalid ELF object (%2)").arg(library) .arg(QLatin1String("announced %2 sections, each %3 bytes, exceed file size")) @@ -165,7 +165,7 @@ int QElfParser::parse(const char *dataStart, ulong fdlen, const QString &library parseSectionHeader(dataStart + soff, &strtab); m_stringTableFileOffset = strtab.offset; - if ((m_stringTableFileOffset + e_shentsize) >= fdlen || m_stringTableFileOffset == 0) { + if ((quint32)(m_stringTableFileOffset + e_shentsize) >= fdlen || m_stringTableFileOffset == 0) { if (lib) lib->errorString = QLibrary::tr("'%1' is an invalid ELF object (%2)").arg(library) .arg(QLatin1String("string table seems to be at %1")) |