summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2019-06-21 06:01:36 +0200
committerJay Berkenbilt <ejb@ql.org>2019-06-21 19:17:21 +0200
commitf40ffc9d6392edf9b6fe74d288d6d578e6d1a240 (patch)
treed4b406f61509fdf9cfc5802f9851f84805cf408d /include
parentda30764bce31efc4e9a228a3554f291215e2055d (diff)
downloadqpdf-f40ffc9d6392edf9b6fe74d288d6d578e6d1a240.tar.zst
Pl_Flate: constructor's out_bufsize is now unsigned int
This is the type we need for the underlying zlib implementation.
Diffstat (limited to 'include')
-rw-r--r--include/qpdf/Pl_Flate.hh8
1 files changed, 4 insertions, 4 deletions
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;