Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #10567 from sepalani/fix-float-preview
MemoryWidget: Fix preview of zero as float/double
  • Loading branch information
AdmiralCurtiss committed Apr 7, 2022
2 parents 368342c + 5b658e7 commit 38bf282
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Source/Core/DolphinQt/Debugger/MemoryWidget.cpp
Expand Up @@ -531,7 +531,7 @@ void MemoryWidget::ValidateAndPreviewInputValue()
if (good)
{
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;
}
Expand All @@ -542,7 +542,7 @@ void MemoryWidget::ValidateAndPreviewInputValue()
if (good)
{
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;
}
Expand Down

0 comments on commit 38bf282

Please sign in to comment.