diff --git a/rpcs3/Emu/Cell/lv2/sys_lwmutex.h b/rpcs3/Emu/Cell/lv2/sys_lwmutex.h index 15a23fdbf6..cf927485b2 100644 --- a/rpcs3/Emu/Cell/lv2/sys_lwmutex.h +++ b/rpcs3/Emu/Cell/lv2/sys_lwmutex.h @@ -76,7 +76,7 @@ struct lv2_lwmutex final : lv2_obj { if (const auto old = lwcond_waiters.fetch_op([](s32& val) { - if (val + 0u <= INT32_MIN + 0u) + if (val + 0u <= 1u << 31) { // Value was either positive or INT32_MIN return false; diff --git a/rpcs3/Emu/RSX/RSXThread.cpp b/rpcs3/Emu/RSX/RSXThread.cpp index 94c4c56783..3b87b7322f 100644 --- a/rpcs3/Emu/RSX/RSXThread.cpp +++ b/rpcs3/Emu/RSX/RSXThread.cpp @@ -2645,7 +2645,7 @@ namespace rsx case frame_limit_type::_50: limit = 50.; break; case frame_limit_type::_60: limit = 60.; break; case frame_limit_type::_30: limit = 30.; break; - case frame_limit_type::_auto: limit = g_cfg.video.vblank_rate; break; // TODO + case frame_limit_type::_auto: limit = static_cast(g_cfg.video.vblank_rate); break; default: break; }