diff options
author | Thiago Macieira <thiago.macieira@nokia.com> | 2009-12-25 23:07:01 (GMT) |
---|---|---|
committer | Thiago Macieira <thiago.macieira@nokia.com> | 2009-12-25 23:08:01 (GMT) |
commit | e6f6ba99253aaac496083b4cf122b095f21b43b3 (patch) | |
tree | 015a7e00071956bdffe7005ed5c7c5cd16017560 /src | |
parent | 11c2d1e5d5a2bbf00230e40f11d2047572f32cd6 (diff) | |
download | Qt-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')
-rw-r--r-- | src/corelib/io/qdebug.h | 2 |
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(); } |