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:
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));
|
||||
|
Loading…
x
Reference in New Issue
Block a user