From 5d4cad9c02e9d4f31477fed0e3b20b35c83936f8 Mon Sep 17 00:00:00 2001 From: Jay Berkenbilt Date: Wed, 20 Jun 2012 11:20:57 -0400 Subject: ABI change: fix use of off_t, size_t, and integer types Significantly improve the code's use of off_t for file offsets, size_t for memory sizes, and integer types in cases where there has to be compatibility with external interfaces. Rework sections of the code that would have prevented qpdf from working on files larger than 2 (or maybe 4) GB in size. --- libqpdf/Pl_ASCII85Decoder.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libqpdf/Pl_ASCII85Decoder.cc') diff --git a/libqpdf/Pl_ASCII85Decoder.cc b/libqpdf/Pl_ASCII85Decoder.cc index ed73ff09..5c9c9f56 100644 --- a/libqpdf/Pl_ASCII85Decoder.cc +++ b/libqpdf/Pl_ASCII85Decoder.cc @@ -16,13 +16,13 @@ Pl_ASCII85Decoder::~Pl_ASCII85Decoder() } void -Pl_ASCII85Decoder::write(unsigned char* buf, int len) +Pl_ASCII85Decoder::write(unsigned char* buf, size_t len) { if (eod > 1) { return; } - for (int i = 0; i < len; ++i) + for (size_t i = 0; i < len; ++i) { if (eod > 1) { -- cgit v1.2.3-54-g00ecf