build: Fix a couple more warnings. (#3598)

This commit is contained in:
squidbus
2025-09-13 15:33:42 -07:00
committed by GitHub
parent c51abe4e8b
commit 21a1888857
10 changed files with 27 additions and 16 deletions

View File

@@ -293,7 +293,7 @@ void ParseColorControl(u32 value, bool begin_table) {
TableSetColumnIndex(0);
Text("ROP3");
TableSetColumnIndex(1);
Text("%X", reg.rop3.Value());
Text("%X", static_cast<u32>(reg.rop3.Value()));
if (begin_table) {
EndTable();
@@ -790,7 +790,7 @@ void ParseZInfo(u32 value, bool begin_table) {
TableSetColumnIndex(0);
Text("TILE_MODE_INDEX");
TableSetColumnIndex(1);
Text("%X", reg.tile_mode_index.Value());
Text("%X", static_cast<u32>(reg.tile_mode_index.Value()));
TableNextRow();
TableSetColumnIndex(0);

View File

@@ -26,7 +26,7 @@ bool MemoryMapViewer::Iterator::DrawLine() {
TableNextColumn();
Text("%" PRIXPTR, m.base);
TableNextColumn();
Text("%llX", m.size);
Text("%" PRIX64, m.size);
TableNextColumn();
Text("%s", magic_enum::enum_name(m.type).data());
TableNextColumn();
@@ -51,7 +51,7 @@ bool MemoryMapViewer::Iterator::DrawLine() {
TableNextColumn();
Text("%" PRIXPTR, m.base);
TableNextColumn();
Text("%llX", m.size);
Text("%" PRIX64, m.size);
TableNextColumn();
auto type = static_cast<::Libraries::Kernel::MemoryTypes>(m.memory_type);
Text("%s", magic_enum::enum_name(type).data());