From 257fbfc40846a5301d91c7e512c1be10a19fc649 Mon Sep 17 00:00:00 2001 From: "Dr. Chat" Date: Tue, 7 Mar 2017 12:33:18 -0600 Subject: [PATCH] ELF Loader: Fix linux build --- src/xenia/cpu/elf_module.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/xenia/cpu/elf_module.cc b/src/xenia/cpu/elf_module.cc index 43f962628..2093bbe6e 100644 --- a/src/xenia/cpu/elf_module.cc +++ b/src/xenia/cpu/elf_module.cc @@ -115,14 +115,14 @@ bool ElfModule::Load(const std::string& name, const std::string& path, // Base address @ 0x80000000 if (phdr[i].p_vaddr < 0x80000000 || phdr[i].p_vaddr > 0x9FFFFFFF) { XELOGE("ELF: Could not allocate memory for section @ address 0x%.8X", - phdr[i].p_vaddr); + uint32_t(phdr[i].p_vaddr)); return false; } uint32_t virtual_addr = phdr[i].p_vaddr & ~(phdr[i].p_align - 1); - uint32_t virtual_size = - xe::round_up(phdr[i].p_vaddr + phdr[i].p_memsz, phdr[i].p_align) - - virtual_addr; + uint32_t virtual_size = xe::round_up(phdr[i].p_vaddr + phdr[i].p_memsz, + uint32_t(phdr[i].p_align)) - + virtual_addr; if (!memory() ->LookupHeap(virtual_addr) ->AllocFixed(