diff --git a/widget/src/cocoa/nsPrintDialogX.mm b/widget/src/cocoa/nsPrintDialogX.mm index 16528d0f547..869429805b1 100644 --- a/widget/src/cocoa/nsPrintDialogX.mm +++ b/widget/src/cocoa/nsPrintDialogX.mm @@ -134,7 +134,7 @@ nsPrintDialogServiceX::Show(nsIDOMWindow *aParent, nsIPrintSettings *aSettings, OSStatus status = ::PMGetFirstPage(nativePrintSettings, &firstPage); if (status == noErr) { status = ::PMGetLastPage(nativePrintSettings, &lastPage); - if (status == noErr && lastPage != LONG_MAX) { + if (status == noErr && lastPage != PR_UINT32_MAX) { aSettings->SetPrintRange(nsIPrintSettings::kRangeSpecifiedPageRange); aSettings->SetStartPageRange(firstPage); aSettings->SetEndPageRange(lastPage);