1
0
mirror of https://github.com/RPCS3/rpcs3.git synced 2024-11-26 04:32:35 +01:00

Minor warning fixes

This commit is contained in:
Eladash 2020-03-23 13:37:02 +02:00 committed by Ivan
parent 3de41bfea7
commit 08e66ab14c
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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<double>(g_cfg.video.vblank_rate); break;
default:
break;
}