diff --git a/rpcs3/Emu/Cell/lv2/sys_memory.cpp b/rpcs3/Emu/Cell/lv2/sys_memory.cpp index 71d98447d5..41b24d79f8 100644 --- a/rpcs3/Emu/Cell/lv2/sys_memory.cpp +++ b/rpcs3/Emu/Cell/lv2/sys_memory.cpp @@ -129,9 +129,9 @@ error_code sys_memory_allocate(cpu_thread& cpu, u64 size, u64 flags, vm::ptr(size), align)) { - if (const u32 addr = area->alloc(size, nullptr, align)) + if (const u32 addr = area->alloc(static_cast(size), nullptr, align)) { ensure(!g_fxo->get().addrs[addr >> 16].exchange(&dct)); @@ -139,7 +139,7 @@ error_code sys_memory_allocate(cpu_thread& cpu, u64 size, u64 flags, vm::ptr(size)); cpu.check_state(); *alloc_addr = addr; return CELL_OK;