mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2024-12-28 02:26:07 +00:00
devtools: More warning fixes (#1652)
This commit is contained in:
parent
3dc0f6d831
commit
fda4f06518
|
@ -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());
|
||||||
|
|
Loading…
Reference in a new issue