Skip to content

Commit

Permalink
devtools: More warning fixes (#1652)
Browse files Browse the repository at this point in the history
  • Loading branch information
squidbus authored Dec 2, 2024
1 parent 3dc0f6d commit fda4f06
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/core/devtools/widget/memory_map.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// SPDX-FileCopyrightText: Copyright 2024 shadPS4 Emulator Project
// SPDX-License-Identifier: GPL-2.0-or-later

#include <cinttypes>
#include <imgui.h>
#include <magic_enum.hpp>

Expand All @@ -23,7 +24,7 @@ bool MemoryMapViewer::Iterator::DrawLine() {
return DrawLine();
}
TableNextColumn();
Text("%zX", m.base);
Text("%" PRIXPTR, m.base);
TableNextColumn();
Text("%zX", m.size);
TableNextColumn();
Expand All @@ -48,9 +49,9 @@ bool MemoryMapViewer::Iterator::DrawLine() {
return DrawLine();
}
TableNextColumn();
Text("%llX", m.base);
Text("%" PRIXPTR, m.base);
TableNextColumn();
Text("%llX", m.size);
Text("%zX", m.size);
TableNextColumn();
auto type = static_cast<::Libraries::Kernel::MemoryTypes>(m.memory_type);
Text("%s", magic_enum::enum_name(type).data());
Expand Down

0 comments on commit fda4f06

Please sign in to comment.