From 59a456690b3b980ef6aa9365ab78fcc47e0d42dc Mon Sep 17 00:00:00 2001 From: Paul Cercueil Date: Wed, 3 Jul 2013 23:17:24 -0400 Subject: [PATCH] Fix build on 64-bit systems --- src/textdialog.cpp | 2 +- src/textmanualdialog.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/textdialog.cpp b/src/textdialog.cpp index b67f33a..edb8d3d 100644 --- a/src/textdialog.cpp +++ b/src/textdialog.cpp @@ -139,7 +139,7 @@ void TextDialog::exec() { if (firstRow + rowsPerPage*2 -1 < text->size()) { firstRow += rowsPerPage-1; } else { - firstRow = max(0u, text->size() - rowsPerPage); + firstRow = max(0lu, text->size() - rowsPerPage); } break; case InputManager::SETTINGS: diff --git a/src/textmanualdialog.cpp b/src/textmanualdialog.cpp index e50b370..25324a6 100644 --- a/src/textmanualdialog.cpp +++ b/src/textmanualdialog.cpp @@ -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(0u, pages[page].text.size() - rowsPerPage); + else firstRow = max(0lu, pages[page].text.size() - rowsPerPage); break; case InputManager::CANCEL: case InputManager::SETTINGS: