summaryrefslogtreecommitdiffstats
path: root/src/corelib/io
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@nokia.com>2009-12-25 23:07:01 (GMT)
committerThiago Macieira <thiago.macieira@nokia.com>2009-12-25 23:08:01 (GMT)
commite6f6ba99253aaac496083b4cf122b095f21b43b3 (patch)
tree015a7e00071956bdffe7005ed5c7c5cd16017560 /src/corelib/io
parent11c2d1e5d5a2bbf00230e40f11d2047572f32cd6 (diff)
downloadQt-e6f6ba99253aaac496083b4cf122b095f21b43b3.zip
Qt-e6f6ba99253aaac496083b4cf122b095f21b43b3.tar.gz
Qt-e6f6ba99253aaac496083b4cf122b095f21b43b3.tar.bz2
Fix warning on 64-bit build with MSVC.
Task-number: QTBUG-3792 Reviewed-by: Trust Me
Diffstat (limited to 'src/corelib/io')
-rw-r--r--src/corelib/io/qdebug.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/io/qdebug.h b/src/corelib/io/qdebug.h
index ff8c6c8..c1c7812 100644
--- a/src/corelib/io/qdebug.h
+++ b/src/corelib/io/qdebug.h
@@ -93,7 +93,7 @@ public:
inline QDebug &maybeSpace() { if (stream->space) stream->ts << ' '; return *this; }
inline QDebug &operator<<(QChar t) { stream->ts << '\'' << t << '\''; return maybeSpace(); }
- inline QDebug &operator<<(QBool t) { stream->ts << (bool(t) ? "true" : "false"); return maybeSpace(); }
+ inline QDebug &operator<<(QBool t) { stream->ts << (bool(t != 0) ? "true" : "false"); return maybeSpace(); }
inline QDebug &operator<<(bool t) { stream->ts << (t ? "true" : "false"); return maybeSpace(); }
inline QDebug &operator<<(char t) { stream->ts << t; return maybeSpace(); }
inline QDebug &operator<<(signed short t) { stream->ts << t; return maybeSpace(); }