eliminate remained compiler warnings

This commit is contained in:
Andrzej Rybczak
2008-12-12 22:50:22 +01:00
parent aac3ce17ee
commit c71f07df6d
5 changed files with 10 additions and 10 deletions

View File

@@ -265,7 +265,7 @@ template <class T> void Menu<T>::Refresh()
return;
}
int MaxBeginning = itsOptions.size() < itsHeight ? 0 : itsOptions.size()-itsHeight;
if (itsHighlight > itsBeginning+itsHeight-1)
if (itsHighlight > itsBeginning+int(itsHeight)-1)
itsBeginning = itsHighlight-itsHeight+1;
if (itsBeginning < 0)
itsBeginning = 0;