Fixed warnings

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5694 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
auria 2010-07-18 15:49:52 +00:00
parent 2a4570f6c6
commit b1c970684c
2 changed files with 6 additions and 4 deletions

View File

@ -185,8 +185,10 @@ int Widget::getNewNoFocusID()
bool Widget::isFocusableId(const int id)
{
if (id >= unfocusableIdsBase) return false;
else return true;
if (id < 0) return false;
if ((unsigned int)id >= unfocusableIdsBase) return false;
else return true;
}
// -----------------------------------------------------------------------------

View File

@ -21,7 +21,7 @@
#include "guiengine/engine.hpp"
#include "modes/world.hpp"
#include "states_screens/dialogs/race_over_dialog.hpp"
#include "states_screens/dialogs/race_over_dialog.hpp"
#include "utils/string_utils.hpp"
/** Constructor, initialises internal data structures.
@ -198,4 +198,4 @@ void RaceResultGUI::displayOneEntry(unsigned int x, unsigned int y,
UserConfigParams::m_width, y+m_distance_between_rows);
m_font->draw(m_entry[n], pos, color);
} // displayOneEntry
} // displayOneEntry