From 010cbdd283904ed6fa58e38862dd3dbf6093b447 Mon Sep 17 00:00:00 2001 From: olsner Date: Thu, 26 Jun 2008 07:48:42 +0000 Subject: [PATCH] More uint/size_t fixes This was SVN commit r6116. --- source/graphics/GameView.cpp | 4 ++-- source/ps/GameAttributes.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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)