summaryrefslogtreecommitdiffstats
path: root/src/corelib/io/qdebug_p.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/corelib/io/qdebug_p.h')
-rw-r--r--src/corelib/io/qdebug_p.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/io/qdebug_p.h b/src/corelib/io/qdebug_p.h
index a1887655d2..dcb906d156 100644
--- a/src/corelib/io/qdebug_p.h
+++ b/src/corelib/io/qdebug_p.h
@@ -93,7 +93,7 @@ static inline void formatQEnum(QDebug &debug, QEnum value)
{
const QMetaObject *metaObject = qt_getEnumMetaObject(value);
const QMetaEnum me = metaObject->enumerator(metaObject->indexOfEnumerator(qt_getEnumName(value)));
- if (const char *key = me.valueToKey(value))
+ if (const char *key = me.valueToKey(int(value)))
debug << key;
else
debug << int(value);