mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-07 23:45:12 +00:00
First part of fixing sign-compare warning (inside be_t).
This commit is contained in:
parent
0cf35e3b22
commit
771eff273b
31 changed files with 129 additions and 128 deletions
|
|
@ -113,13 +113,13 @@ error_code sys_lwmutex_lock(ppu_thread& ppu, vm::ptr<sys_lwmutex_t> lwmutex, u64
|
|||
{
|
||||
// recursive locking
|
||||
|
||||
if ((lwmutex->attribute & SYS_SYNC_RECURSIVE) == 0)
|
||||
if ((lwmutex->attribute & SYS_SYNC_RECURSIVE) == 0u)
|
||||
{
|
||||
// if not recursive
|
||||
return CELL_EDEADLK;
|
||||
}
|
||||
|
||||
if (lwmutex->recursive_count == -1)
|
||||
if (lwmutex->recursive_count == umax)
|
||||
{
|
||||
// if recursion limit reached
|
||||
return CELL_EKRESOURCE;
|
||||
|
|
@ -273,13 +273,13 @@ error_code sys_lwmutex_trylock(ppu_thread& ppu, vm::ptr<sys_lwmutex_t> lwmutex)
|
|||
{
|
||||
// recursive locking
|
||||
|
||||
if ((lwmutex->attribute & SYS_SYNC_RECURSIVE) == 0)
|
||||
if ((lwmutex->attribute & SYS_SYNC_RECURSIVE) == 0u)
|
||||
{
|
||||
// if not recursive
|
||||
return CELL_EDEADLK;
|
||||
}
|
||||
|
||||
if (lwmutex->recursive_count == -1)
|
||||
if (lwmutex->recursive_count == umax)
|
||||
{
|
||||
// if recursion limit reached
|
||||
return CELL_EKRESOURCE;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue