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/bits.icc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libqpdf/bits.icc') diff --git a/libqpdf/bits.icc b/libqpdf/bits.icc index e6abdf0e..31765986 100644 --- a/libqpdf/bits.icc +++ b/libqpdf/bits.icc @@ -95,7 +95,7 @@ read_bits(unsigned char const*& p, unsigned int& bit_offset, #ifdef BITS_WRITE static void write_bits(unsigned char& ch, unsigned int& bit_offset, - unsigned long val, unsigned bits, Pipeline* pipeline) + unsigned long val, unsigned int bits, Pipeline* pipeline) { if (bits > 32) { -- cgit v1.2.3-54-g00ecf