debugger: handle large quint64 values 'properly'

(cherry picked from commit 02e90fd71d)

Conflicts:

	src/plugins/debugger/watchhandler.cpp
This commit is contained in:
con
2010-01-06 15:10:04 +01:00
parent 1906319940
commit 769c51504c

View File

@@ -608,7 +608,8 @@ static QString formattedValue(const WatchData &data,
const int format = individualFormat == -1 ? typeFormat : individualFormat; const int format = individualFormat == -1 ? typeFormat : individualFormat;
if (format <= 0) if (format <= 0)
return data.value; return data.value;
if (data.type.contains(QLatin1String("unsigned"))) { // Evil hack, covers 'unsigned' as well as quint64.
if (data.type.contains(QLatin1Char('u'))) {
return reformatInteger(data.value.toULongLong(), format); return reformatInteger(data.value.toULongLong(), format);
} else { } else {
return reformatInteger(data.value.toLongLong(), format); return reformatInteger(data.value.toLongLong(), format);