diff options
| author | Admiral H. Curtiss <pikachu025@gmail.com> | 2022-04-07 14:41:01 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-04-07 14:41:01 +0200 |
| commit | 38bf2826f13f8f87b44349d08d56d0c69b317d20 (patch) | |
| tree | e3f2f0e912d343a9f73434da6b98e4c10ce769b5 /Source/Core/DolphinQt/Debugger/MemoryWidget.cpp | |
| parent | 368342cb9b113643d51b7ae461b577e9daee6aac (diff) | |
| parent | 5b658e77dfe84b6612a834e8461b2902c4913169 (diff) | |
Merge pull request #10567 from sepalani/fix-float-preview
MemoryWidget: Fix preview of zero as float/double
Diffstat (limited to 'Source/Core/DolphinQt/Debugger/MemoryWidget.cpp')
| -rw-r--r-- | Source/Core/DolphinQt/Debugger/MemoryWidget.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Core/DolphinQt/Debugger/MemoryWidget.cpp b/Source/Core/DolphinQt/Debugger/MemoryWidget.cpp index a2f9c9bc03..d768f07324 100644 --- a/Source/Core/DolphinQt/Debugger/MemoryWidget.cpp +++ b/Source/Core/DolphinQt/Debugger/MemoryWidget.cpp @@ -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; } @@ -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; } |
