diff --git a/libqpdf/QPDF_linearization.cc b/libqpdf/QPDF_linearization.cc index 91855942..5de1e8f6 100644 --- a/libqpdf/QPDF_linearization.cc +++ b/libqpdf/QPDF_linearization.cc @@ -794,7 +794,7 @@ QPDF::checkHPageOffset(std::list& errors, { stopOnError("supposed first page object is not known"); } - int offset = getLinearizationOffset(first_page_og); + qpdf_offset_t offset = getLinearizationOffset(first_page_og); if (table_offset != offset) { warnings.push_back("first page object offset mismatch");