cellPad: fix potential out of bounds read and u32 warnings

This commit is contained in:
Megamouse 2023-08-25 21:42:29 +02:00
parent 656f971823
commit 9d88102520
3 changed files with 8 additions and 8 deletions

View file

@ -36,7 +36,7 @@ extern void sys_io_serialize(utils::serial& ar)
g_fxo->get<libio_sys_config>().save_or_load(ar);
}
extern void cellPad_NotifyStateChange(u32 index, u32 state);
extern void cellPad_NotifyStateChange(usz index, u32 state);
void config_event_entry(ppu_thread& ppu)
{
@ -101,7 +101,7 @@ std::unique_lock<shared_mutex> lock_lv2_mutex_alike(shared_mutex& mtx, ppu_threa
return lock;
}
extern void send_sys_io_connect_event(u32 index, u32 state)
extern void send_sys_io_connect_event(usz index, u32 state)
{
auto& cfg = g_fxo->get<libio_sys_config>();