Fixed compilation errors and warnings on linux.

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12791 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
hikerstk 2013-05-28 06:21:41 +00:00
parent d0c2339915
commit 6e00d4e141
2 changed files with 2 additions and 2 deletions

View File

@ -157,7 +157,7 @@ void Wiimote::printDebugInfo() const
{WIIMOTE_BUTTON_HOME, "WIIMOTE_BUTTON_HOME" },
}; // wiimote_actions
const int count = sizeof(wiimote_actions)/sizeof(WiimoteAction);
const unsigned int count = sizeof(wiimote_actions)/sizeof(WiimoteAction);
for(unsigned int i=0 ; i<count; i++)
{
if(IS_PRESSED(m_wiimote_handle, wiimote_actions[i].wiimote_action_id))

View File

@ -78,7 +78,7 @@ public:
// -----------------------------------------------------------------------------
/** Returns the irrlicht id for this wiimote. The wiimote ids have a higher
* index than any gamepad reported by irrlicht.*/
int Wiimote::getIrrId() { return m_wiimote_id + WIIMOTE_START_IRR_ID; }
int getIrrId() { return m_wiimote_id + WIIMOTE_START_IRR_ID; }
}; // class Wiimote