From 8a74d95eb2bfbd8c17c09036257c6ae6f85283b3 Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Sun, 9 Apr 2023 12:07:41 -0700 Subject: [PATCH] Debugger: Fix format for 32-bit OS. --- Core/Debugger/WebSocket/DisasmSubscriber.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Core/Debugger/WebSocket/DisasmSubscriber.cpp b/Core/Debugger/WebSocket/DisasmSubscriber.cpp index d467a25cd8..eea7921ba4 100644 --- a/Core/Debugger/WebSocket/DisasmSubscriber.cpp +++ b/Core/Debugger/WebSocket/DisasmSubscriber.cpp @@ -263,7 +263,7 @@ void WebSocketDisasmState::WriteBranchGuide(JsonWriter &json, const BranchLine & void WebSocketDisasmState::Base(DebuggerRequest &req) { JsonWriter &json = req.Respond(); Reporting::NotifyDebugger(); - json.writeString("addressHex", StringFromFormat("%016llx", (uintptr_t)Memory::base)); + json.writeString("addressHex", StringFromFormat("%016llx", (uint64_t)(uintptr_t)Memory::base)); } // Disassemble a range of memory as CPU instructions (memory.disasm)