diff --git a/rpcs3/Emu/Cell/lv2/sys_rwlock.cpp b/rpcs3/Emu/Cell/lv2/sys_rwlock.cpp index 7b2522a024..ded4ea1606 100644 --- a/rpcs3/Emu/Cell/lv2/sys_rwlock.cpp +++ b/rpcs3/Emu/Cell/lv2/sys_rwlock.cpp @@ -350,7 +350,7 @@ error_code sys_rwlock_wlock(ppu_thread& ppu, u32 rw_lock_id, u64 timeout) { rwlock->owner.atomic_op([&](s64& owner) { - owner -= -2 * static_cast(rwlock->rq.size()); // Add readers to value + owner -= 2 * static_cast(rwlock->rq.size()); // Add readers to value owner &= -2; // Clear wait bit });