diff options
author | sebres <sebres@users.sourceforge.net> | 2020-06-24 14:53:08 (GMT) |
---|---|---|
committer | sebres <sebres@users.sourceforge.net> | 2020-06-24 14:53:08 (GMT) |
commit | dbab2685a152edb53d27b36096f264e30a6c051e (patch) | |
tree | 20c7a93f27769de9daa5db8388298df08d39ca8f /generic | |
parent | 04f23379c615b781843192cb845e06f2ae28ad6b (diff) | |
download | tcl-dbab2685a152edb53d27b36096f264e30a6c051e.zip tcl-dbab2685a152edb53d27b36096f264e30a6c051e.tar.gz tcl-dbab2685a152edb53d27b36096f264e30a6c051e.tar.bz2 |
amend to 8.6th zlib-fix resolving warnings in 8.7 (int vs size_t, void * vs char *, etc)
Diffstat (limited to 'generic')
-rw-r--r-- | generic/tclZlib.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/generic/tclZlib.c b/generic/tclZlib.c index bfd4578..dad37a4 100644 --- a/generic/tclZlib.c +++ b/generic/tclZlib.c @@ -110,7 +110,7 @@ typedef struct { int format; /* What format of data is going on the wire. * Needed so that the correct [fconfigure] * options can be enabled. */ - int readAheadLimit; /* The maximum number of bytes to read from + unsigned int readAheadLimit;/* The maximum number of bytes to read from * the underlying stream in one go. */ z_stream inStream; /* Structure used by zlib for decompression of * input. */ @@ -3059,7 +3059,7 @@ ZlibTransformInput( gotBytes = 0; readBytes = cd->inStream.avail_in; /* how many bytes in buffer now */ while (!(cd->flags & STREAM_DONE) && toRead > 0) { - int n, decBytes; + unsigned int n; int decBytes; /* if starting from scratch or continuation after full decompression */ if (!cd->inStream.avail_in) { @@ -3735,7 +3735,7 @@ ZlibStackChannelTransform( if (cd->inAllocated < cd->readAheadLimit) { cd->inAllocated = cd->readAheadLimit; } - cd->inBuffer = ckalloc(cd->inAllocated); + cd->inBuffer = (char *)ckalloc(cd->inAllocated); if (cd->flags & IN_HEADER) { if (inflateGetHeader(&cd->inStream, &cd->inHeader.header) != Z_OK) { goto error; |