Skip to content

Commit 64a3e50

Browse files
committed
Fix some warnings
1 parent 0750574 commit 64a3e50

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

rpcs3/Emu/Cell/SPUThread.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6181,7 +6181,7 @@ s64 spu_thread::get_ch_value(u32 ch)
61816181
{
61826182
if (utils::has_waitpkg())
61836183
{
6184-
__tpause(std::min<u32>(eventstat_spin_count, 10) * 500, 0x1);
6184+
__tpause(static_cast<u32>(std::min<u64>(eventstat_spin_count, 10) * 500), 0x1);
61856185
}
61866186
else
61876187
{
@@ -6194,7 +6194,7 @@ s64 spu_thread::get_ch_value(u32 ch)
61946194
};
61956195

61966196
// Provide the first X64 cache line of the reservation to be tracked
6197-
__mwaitx<check_wait_t>(std::min<u32>(eventstat_spin_count, 17) * 500, 0xf0, std::addressof(*resrv_mem), +rtime, vm::reservation_acquire(raddr));
6197+
__mwaitx<check_wait_t>(static_cast<u32>(std::min<u64>(eventstat_spin_count, 17) * 500), 0xf0, std::addressof(*resrv_mem), +rtime, vm::reservation_acquire(raddr));
61986198
}
61996199
}
62006200
else

0 commit comments

Comments
 (0)