diff --git a/source/graphics/GameView.cpp b/source/graphics/GameView.cpp index 6894e6d4f3..fa473a8400 100644 --- a/source/graphics/GameView.cpp +++ b/source/graphics/GameView.cpp @@ -928,14 +928,14 @@ InReaction CGameView::HandleEvent(const SDL_Event_* ev) } bool CGameViewImpl::JSI_StartCustomSelection( - JSContext* UNUSED(context), size_t UNUSED(argc), jsval* UNUSED(argv)) + JSContext* UNUSED(context), uintN UNUSED(argc), jsval* UNUSED(argv)) { StartCustomSelection(); return true; } bool CGameViewImpl::JSI_EndCustomSelection( - JSContext* UNUSED(context), size_t UNUSED(argc), jsval* UNUSED(argv)) + JSContext* UNUSED(context), uintN UNUSED(argc), jsval* UNUSED(argv)) { ResetInteraction(); return true; diff --git a/source/ps/GameAttributes.cpp b/source/ps/GameAttributes.cpp index 48761988ed..aecae8495a 100644 --- a/source/ps/GameAttributes.cpp +++ b/source/ps/GameAttributes.cpp @@ -302,7 +302,7 @@ void CGameAttributes::OnNumSlotsUpdate(CSynchedJSObjectBase *owner) // Clamp to a preset upper bound. CConfigValue *val=g_ConfigDB.GetValue(CFG_MOD, "max_players"); - size_t maxPlayers=PS_MAX_PLAYERS; + uint maxPlayers=PS_MAX_PLAYERS; if (val) val->GetUnsignedInt(maxPlayers); if (pInstance->m_NumSlots > maxPlayers)