From 6e00d4e141a3c3d579e51dfa8dfb876f89b0da6a Mon Sep 17 00:00:00 2001 From: hikerstk <hikerstk@178a84e3-b1eb-0310-8ba1-8eac791a3b58> Date: Tue, 28 May 2013 06:21:41 +0000 Subject: [PATCH] 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 --- src/input/wiimote.cpp | 2 +- src/input/wiimote.hpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/input/wiimote.cpp b/src/input/wiimote.cpp index 74f510f65..d517e2d52 100644 --- a/src/input/wiimote.cpp +++ b/src/input/wiimote.cpp @@ -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)) diff --git a/src/input/wiimote.hpp b/src/input/wiimote.hpp index 333b1202f..d44ec7214 100644 --- a/src/input/wiimote.hpp +++ b/src/input/wiimote.hpp @@ -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