Core: Fix gcc warning about signed/unsigned integer comparison
authorKai Koehne <kai.koehne@nokia.com>
Mon, 17 Sep 2012 09:15:29 +0000 (11:15 +0200)
committerThe 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

index c42d50b..9aead3e 100644 (file)
@@ -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;
         }