diff options
author | Kai Koehne <kai.koehne@nokia.com> | 2009-09-02 11:35:15 (GMT) |
---|---|---|
committer | Kai Koehne <kai.koehne@nokia.com> | 2009-09-02 11:37:44 (GMT) |
commit | 23c2aea7ce6379927609109e18c6252fbee68fbc (patch) | |
tree | 6ede844311b6585b1a89c5cf93eb27338b61f6e4 /src/corelib/global/qglobal.h | |
parent | 27768d64786ea97ff825dda2095cb457b50d3c4f (diff) | |
download | Qt-23c2aea7ce6379927609109e18c6252fbee68fbc.zip Qt-23c2aea7ce6379927609109e18c6252fbee68fbc.tar.gz Qt-23c2aea7ce6379927609109e18c6252fbee68fbc.tar.bz2 |
Fix gcc compiler warning about unsigned/signed integer comparison
gcc 4.4.3 with option "-Wall" complained about
'comparison between signed and unsigned integer expressons'
in every code path using testFlag().
Reviewed-by: Frans Englich
Diffstat (limited to 'src/corelib/global/qglobal.h')
-rw-r--r-- | src/corelib/global/qglobal.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/global/qglobal.h b/src/corelib/global/qglobal.h index d22a863..c021cd6 100644 --- a/src/corelib/global/qglobal.h +++ b/src/corelib/global/qglobal.h @@ -2170,7 +2170,7 @@ public: inline bool operator!() const { return !i; } - inline bool testFlag(Enum f) const { return (i & f) == f && (f != 0 || i == f ); } + inline bool testFlag(Enum f) const { return (i & f) == f && (f != 0 || i == (int)f ); } }; #define Q_DECLARE_FLAGS(Flags, Enum)\ |