diff options
author | Jay Berkenbilt <ejb@ql.org> | 2012-06-23 21:08:21 +0200 |
---|---|---|
committer | Jay Berkenbilt <ejb@ql.org> | 2012-06-24 21:20:01 +0200 |
commit | 781c313058e26b6ab6fda060a652a395d27cdb7a (patch) | |
tree | 30488e9556dcf2c584fd46ec8ec61e59d2141634 /libqpdf/QPDFWriter.cc | |
parent | 4ef95dbda440e0aeffa26df40cc33d001e77f4c5 (diff) | |
download | qpdf-781c313058e26b6ab6fda060a652a395d27cdb7a.tar.zst |
Change QPDF_Integer from int to long long
This makes it possible to store offsets that are larger than 2 GB in
the trailer dictionary.
Diffstat (limited to 'libqpdf/QPDFWriter.cc')
-rw-r--r-- | libqpdf/QPDFWriter.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libqpdf/QPDFWriter.cc b/libqpdf/QPDFWriter.cc index 71549ff4..308f4c53 100644 --- a/libqpdf/QPDFWriter.cc +++ b/libqpdf/QPDFWriter.cc @@ -881,6 +881,7 @@ QPDFWriter::writeTrailer(trailer_e which, int size, bool xref_stream, int prev) writeString(" /Prev "); qpdf_offset_t pos = this->pipeline->getCount(); writeString(QUtil::int_to_string(prev)); + // XXX int nspaces = (int)(pos - this->pipeline->getCount() + 11); assert(nspaces >= 0); writePad(nspaces); |