1
0
mirror of git://projects.qi-hardware.com/gmenu2x.git synced 2024-07-02 18:05:26 +03:00

Fix build on 32-bit targets...

This fixes commit 59a456690b
which introduced a regression.
This commit is contained in:
Paul Cercueil 2013-07-03 23:45:38 -04:00
parent 59a456690b
commit abc461bf95
2 changed files with 2 additions and 2 deletions

View File

@ -139,7 +139,7 @@ void TextDialog::exec() {
if (firstRow + rowsPerPage*2 -1 < text->size()) {
firstRow += rowsPerPage-1;
} else {
firstRow = max(0lu, text->size() - rowsPerPage);
firstRow = max(0ul, (unsigned long) (text->size() - rowsPerPage));
}
break;
case InputManager::SETTINGS:

View File

@ -133,7 +133,7 @@ void TextManualDialog::exec() {
break;
case InputManager::ALTRIGHT:
if (firstRow + rowsPerPage*2 -1 < pages[page].text.size()) firstRow += rowsPerPage-1;
else firstRow = max(0lu, pages[page].text.size() - rowsPerPage);
else firstRow = max(0ul, (unsigned long) (pages[page].text.size() - rowsPerPage));
break;
case InputManager::CANCEL:
case InputManager::SETTINGS: