JobSetupWindow.cpp: fix clang warning

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

Signed-off-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
Ticket: #12832
This commit is contained in:
Murai Takashi 2016-06-26 16:36:52 +09:00 committed by Adrien Destugues
parent 46b40482a6
commit 12e39ec560

View File

@ -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));