sys_ppu_thread: Fix warning

This commit is contained in:
Elad 2025-11-15 14:22:36 +02:00
parent c7ae97f8ea
commit 109abea454

View file

@ -508,7 +508,7 @@ error_code _sys_ppu_thread_create(ppu_thread& ppu, vm::ptr<u64> thread_id, vm::p
return {CELL_ENOMEM, dct.size - dct.used};
}
const vm::addr_t stack_base{vm::alloc(stack_size, vm::stack, 4096)};
const vm::addr_t stack_base{vm::alloc(static_cast<u32>(stack_size), vm::stack, 4096)};
if (!stack_base)
{
@ -533,7 +533,7 @@ error_code _sys_ppu_thread_create(ppu_thread& ppu, vm::ptr<u64> thread_id, vm::p
{
ppu_thread_params p;
p.stack_addr = stack_base;
p.stack_size = stack_size;
p.stack_size = static_cast<u32>(stack_size);
p.tls_addr = tls;
p.entry = entry;
p.arg0 = arg;