From b57a71e2841f626f0eed8b80727cc7259db4fb57 Mon Sep 17 00:00:00 2001 From: "Dr. Chat" Date: Fri, 3 Jul 2015 22:02:58 -0500 Subject: [PATCH] Typecast xe::be before sending it into printf --- src/xenia/kernel/objects/xuser_module.cc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/xenia/kernel/objects/xuser_module.cc b/src/xenia/kernel/objects/xuser_module.cc index 2adb3af1b..b0fd110b9 100644 --- a/src/xenia/kernel/objects/xuser_module.cc +++ b/src/xenia/kernel/objects/xuser_module.cc @@ -259,8 +259,9 @@ void XUserModule::Dump() { std::memcpy(name, res.name, sizeof(res.name)); name[8] = 0; - printf(" %-8s %.8X-%.8X, %db\n", name, res.address, - res.address + res.size, res.size); + printf(" %-8s %.8X-%.8X, %db\n", name, (uint32_t)res.address, + (uint32_t)res.address + (uint32_t)res.size, + (uint32_t)res.size); } } break; case XEX_HEADER_FILE_FORMAT_INFO: { @@ -319,7 +320,7 @@ void XUserModule::Dump() { auto name = string_table[library->name_index]; // Okay. Dump it. - printf(" %s - %d imports\n", name, library->count); + printf(" %s - %d imports\n", name, (uint16_t)library->count); // Manually byteswap these because of the bitfields. xex2_version version, version_min;