diff options
Diffstat (limited to 'libqpdf/Pl_Count.cc')
-rw-r--r-- | libqpdf/Pl_Count.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libqpdf/Pl_Count.cc b/libqpdf/Pl_Count.cc index c76a5e23..b4b13640 100644 --- a/libqpdf/Pl_Count.cc +++ b/libqpdf/Pl_Count.cc @@ -1,4 +1,5 @@ #include <qpdf/Pl_Count.hh> +#include <qpdf/QIntC.hh> Pl_Count::Pl_Count(char const* identifier, Pipeline* next) : Pipeline(identifier, next), @@ -16,7 +17,7 @@ Pl_Count::write(unsigned char* buf, size_t len) { if (len) { - this->count += len; + this->count += QIntC::to_offset(len); getNext()->write(buf, len); this->last_char = buf[len - 1]; } |