Core: Fix gcc warning about signed/unsigned integer comparison

Fix warning: 'comparison between signed and unsigned integer expressions'

Change-Id: I5ce2857115137f9a06eddc74fda55ae49e37d345
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
Kai Koehne 2012-09-17 11:15:29 +02:00 committed by The Qt Project
parent 10e0e8afda
commit fdc64a445d

View 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;
}