devtools: More warning fixes (#1652)

This commit is contained in:
squidbus 2024-12-02 11:46:51 -08:00 committed by GitHub
parent 3dc0f6d831
commit fda4f06518
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,6 +1,7 @@
// SPDX-FileCopyrightText: Copyright 2024 shadPS4 Emulator Project // SPDX-FileCopyrightText: Copyright 2024 shadPS4 Emulator Project
// SPDX-License-Identifier: GPL-2.0-or-later // SPDX-License-Identifier: GPL-2.0-or-later
#include <cinttypes>
#include <imgui.h> #include <imgui.h>
#include <magic_enum.hpp> #include <magic_enum.hpp>
@ -23,7 +24,7 @@ bool MemoryMapViewer::Iterator::DrawLine() {
return DrawLine(); return DrawLine();
} }
TableNextColumn(); TableNextColumn();
Text("%zX", m.base); Text("%" PRIXPTR, m.base);
TableNextColumn(); TableNextColumn();
Text("%zX", m.size); Text("%zX", m.size);
TableNextColumn(); TableNextColumn();
@ -48,9 +49,9 @@ bool MemoryMapViewer::Iterator::DrawLine() {
return DrawLine(); return DrawLine();
} }
TableNextColumn(); TableNextColumn();
Text("%llX", m.base); Text("%" PRIXPTR, m.base);
TableNextColumn(); TableNextColumn();
Text("%llX", m.size); Text("%zX", m.size);
TableNextColumn(); TableNextColumn();
auto type = static_cast<::Libraries::Kernel::MemoryTypes>(m.memory_type); auto type = static_cast<::Libraries::Kernel::MemoryTypes>(m.memory_type);
Text("%s", magic_enum::enum_name(type).data()); Text("%s", magic_enum::enum_name(type).data());