summaryrefslogtreecommitdiffstats
path: root/src/corelib/global/qglobal.h
diff options
context:
space:
mode:
authorKai Koehne <kai.koehne@nokia.com>2009-09-02 11:35:15 (GMT)
committerKai Koehne <kai.koehne@nokia.com>2009-09-02 11:37:44 (GMT)
commit23c2aea7ce6379927609109e18c6252fbee68fbc (patch)
tree6ede844311b6585b1a89c5cf93eb27338b61f6e4 /src/corelib/global/qglobal.h
parent27768d64786ea97ff825dda2095cb457b50d3c4f (diff)
downloadQt-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.h2
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)\