Fix display of 64-bit integers in buffer viewer

This commit is contained in:
baldurk
2019-09-07 09:24:46 +01:00
parent 54f271930c
commit 7fe044faaf
+12
View File
@@ -1133,6 +1133,18 @@ private:
else
ret = Formatter::Format(i);
}
else if(vt == QMetaType::ULongLong)
{
ret = Formatter::Format(v.toULongLong(), el.hex);
}
else if(vt == QMetaType::LongLong)
{
int64_t i = v.toLongLong();
if(i >= 0)
ret = lit(" ") + Formatter::Format(i);
else
ret = Formatter::Format(i);
}
else
{
ret = v.toString();