projects
/
profile
/
ivi
/
qtbase.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
10e0e8a
)
Core: Fix gcc warning about signed/unsigned integer comparison
author
Kai Koehne
<kai.koehne@nokia.com>
Mon, 17 Sep 2012 09:15:29 +0000
(11:15 +0200)
committer
The Qt Project
<gerrit-noreply@qt-project.org>
Tue, 18 Sep 2012 15:39:50 +0000
(17:39 +0200)
Fix warning: 'comparison between signed and unsigned integer expressions'
Change-Id: I5ce2857115137f9a06eddc74fda55ae49e37d345
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
src/corelib/kernel/qtranslator.cpp
patch
|
blob
|
history
diff --git
a/src/corelib/kernel/qtranslator.cpp
b/src/corelib/kernel/qtranslator.cpp
index
c42d50b
..
9aead3e
100644
(file)
--- a/
src/corelib/kernel/qtranslator.cpp
+++ b/
src/corelib/kernel/qtranslator.cpp
@@
-782,7
+782,7
@@
bool QTranslatorPrivate::do_load(const uchar *data, int len, const QString &dire
data += 4;
if (!tag || !blockLen)
break;
- if (
end - data
< blockLen) {
+ if (
quint32(end - data)
< blockLen) {
ok = false;
break;
}