JobSetupWindow.cpp: fix clang warning

Since 'lastPage' is int32, use INT32_MAX instead of LONG_MAX.

Signed-off-by: Adrien Destugues <[email protected]>
Ticket: #12832
This commit is contained in:
Murai Takashi
2016-07-10 17:11:36 +02:00
committed by Adrien Destugues
parent 46b40482a6
commit 12e39ec560
@@ -42,7 +42,7 @@ JobSetupWindow::JobSetupWindow(BMessage *msg, const char * printerName)
int32 lastPage;
fSetupMsg->FindInt32("last_page", &lastPage);
bool allPages = firstPage == 1 && lastPage == LONG_MAX;
bool allPages = firstPage == 1 && lastPage == INT32_MAX;
fAll = new BRadioButton("allPages", "Print all pages",
new BMessage(ALL_PAGES_MGS));