mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-03-12 14:46:49 +01:00
MemoryWidget: Fix preview of zero as float/double
This commit is contained in:
parent
368342cb9b
commit
5b658e77df
@ -531,7 +531,7 @@ void MemoryWidget::ValidateAndPreviewInputValue()
|
|||||||
if (good)
|
if (good)
|
||||||
{
|
{
|
||||||
const u32 hex_out = Common::BitCast<u32>(value_float);
|
const u32 hex_out = Common::BitCast<u32>(value_float);
|
||||||
hex_string = QString::fromStdString(fmt::format("{:X}", hex_out));
|
hex_string = QString::fromStdString(fmt::format("{:08X}", hex_out));
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@ -542,7 +542,7 @@ void MemoryWidget::ValidateAndPreviewInputValue()
|
|||||||
if (good)
|
if (good)
|
||||||
{
|
{
|
||||||
const u64 hex_out = Common::BitCast<u64>(value_double);
|
const u64 hex_out = Common::BitCast<u64>(value_double);
|
||||||
hex_string = QString::fromStdString(fmt::format("{:X}", hex_out));
|
hex_string = QString::fromStdString(fmt::format("{:016X}", hex_out));
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user