aboutsummaryrefslogtreecommitdiffstats
path: root/libqpdf/QPDF_linearization.cc
diff options
context:
space:
mode:
Diffstat (limited to 'libqpdf/QPDF_linearization.cc')
-rw-r--r--libqpdf/QPDF_linearization.cc8
1 files changed, 3 insertions, 5 deletions
diff --git a/libqpdf/QPDF_linearization.cc b/libqpdf/QPDF_linearization.cc
index 2444b317..888b4262 100644
--- a/libqpdf/QPDF_linearization.cc
+++ b/libqpdf/QPDF_linearization.cc
@@ -128,8 +128,7 @@ QPDF::isLinearized()
(t2.getType() == QPDFTokenizer::tt_integer) &&
(t3 == QPDFTokenizer::Token(QPDFTokenizer::tt_word, "obj")) &&
(t4.getType() == QPDFTokenizer::tt_dict_open)) {
- lindict_obj =
- QIntC::to_int(QUtil::string_to_ll(t1.getValue().c_str()));
+ lindict_obj = toI(QUtil::string_to_ll(t1.getValue().c_str()));
}
}
@@ -143,8 +142,7 @@ QPDF::isLinearized()
}
QPDFObjectHandle linkey = candidate.getKey("/Linearized");
- if (!(linkey.isNumber() &&
- (QIntC::to_int(floor(linkey.getNumericValue())) == 1))) {
+ if (!(linkey.isNumber() && (toI(floor(linkey.getNumericValue())) == 1))) {
return false;
}
@@ -1797,7 +1795,7 @@ QPDF::calculateHSharedObject(
soe.push_back(HSharedObjectEntry());
soe.at(i).delta_group_length = length;
}
- if (soe.size() != QIntC::to_size(cso.nshared_total)) {
+ if (soe.size() != toS(cso.nshared_total)) {
stopOnError("soe has wrong size after initialization");
}