From: Kai Koehne Date: Mon, 17 Sep 2012 09:15:29 +0000 (+0200) Subject: Core: Fix gcc warning about signed/unsigned integer comparison X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=fdc64a445d61115d2232a69dfee6f5c6a9d7584e;p=profile%2Fivi%2Fqtbase.git 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 --- diff --git a/src/corelib/kernel/qtranslator.cpp b/src/corelib/kernel/qtranslator.cpp index c42d50b..9aead3e 100644 --- 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; }