Skip to content

Commit 109abea

Browse files
committed
sys_ppu_thread: Fix warning
1 parent c7ae97f commit 109abea

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

rpcs3/Emu/Cell/lv2/sys_ppu_thread.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -508,7 +508,7 @@ error_code _sys_ppu_thread_create(ppu_thread& ppu, vm::ptr<u64> thread_id, vm::p
508508
return {CELL_ENOMEM, dct.size - dct.used};
509509
}
510510

511-
const vm::addr_t stack_base{vm::alloc(stack_size, vm::stack, 4096)};
511+
const vm::addr_t stack_base{vm::alloc(static_cast<u32>(stack_size), vm::stack, 4096)};
512512

513513
if (!stack_base)
514514
{
@@ -533,7 +533,7 @@ error_code _sys_ppu_thread_create(ppu_thread& ppu, vm::ptr<u64> thread_id, vm::p
533533
{
534534
ppu_thread_params p;
535535
p.stack_addr = stack_base;
536-
p.stack_size = stack_size;
536+
p.stack_size = static_cast<u32>(stack_size);
537537
p.tls_addr = tls;
538538
p.entry = entry;
539539
p.arg0 = arg;

0 commit comments

Comments
 (0)