Another fixup after #7826

This commit is contained in:
Eladash 2020-03-23 10:35:42 +02:00 committed by Ivan
parent 017ef5a94e
commit 537f175f52

View File

@ -64,9 +64,9 @@ error_code _sys_lwmutex_destroy(ppu_thread& ppu, u32 lwmutex_id)
}
// Wait for all lwcond waiters to quit
if (const s32 old = mutex->lwcond_waiters; old & 0x7fff'ffff)
if (const s32 old = mutex->lwcond_waiters; old != INT32_MIN)
{
if (old > 0)
if (old >= 0)
{
// Sleep queue is no longer empty
// Was set to positive value to announce it