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;
}
// -----------------------------------------------------------------------------