From f40ffc9d6392edf9b6fe74d288d6d578e6d1a240 Mon Sep 17 00:00:00 2001 From: Jay Berkenbilt Date: Fri, 21 Jun 2019 00:01:36 -0400 Subject: Pl_Flate: constructor's out_bufsize is now unsigned int This is the type we need for the underlying zlib implementation. --- include/qpdf/Pl_Flate.hh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'include') diff --git a/include/qpdf/Pl_Flate.hh b/include/qpdf/Pl_Flate.hh index fdd66996..923b33a8 100644 --- a/include/qpdf/Pl_Flate.hh +++ b/include/qpdf/Pl_Flate.hh @@ -27,13 +27,13 @@ class Pl_Flate: public Pipeline { public: - static int const def_bufsize = 65536; + static unsigned int const def_bufsize = 65536; enum action_e { a_inflate, a_deflate }; QPDF_DLL Pl_Flate(char const* identifier, Pipeline* next, - action_e action, int out_bufsize = def_bufsize); + action_e action, unsigned int out_bufsize = def_bufsize); QPDF_DLL virtual ~Pl_Flate(); @@ -43,11 +43,11 @@ class Pl_Flate: public Pipeline virtual void finish(); private: - void handleData(unsigned char* data, int len, int flush); + void handleData(unsigned char* data, size_t len, int flush); void checkError(char const* prefix, int error_code); unsigned char* outbuf; - int out_bufsize; + size_t out_bufsize; action_e action; bool initialized; void* zdata; -- cgit v1.2.3-70-g09d2