summaryrefslogtreecommitdiffstats
path: root/generic/tclZlib.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2018-10-06 19:20:43 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2018-10-06 19:20:43 (GMT)
commit99e9ce3656f195c60ba4e928559c05d47167901c (patch)
tree64fba30ebef34869f49fcdf5b36b3b41164698db /generic/tclZlib.c
parentd84d03b91a4eb72f88b56011713706a6f36bc17c (diff)
downloadtcl-99e9ce3656f195c60ba4e928559c05d47167901c.zip
tcl-99e9ce3656f195c60ba4e928559c05d47167901c.tar.gz
tcl-99e9ce3656f195c60ba4e928559c05d47167901c.tar.bz2
Use more TCL_AUTO_LENGTH, when appropriate
Diffstat (limited to 'generic/tclZlib.c')
-rw-r--r--generic/tclZlib.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/tclZlib.c b/generic/tclZlib.c
index d05d774..f2c3cb9 100644
--- a/generic/tclZlib.c
+++ b/generic/tclZlib.c
@@ -1329,7 +1329,7 @@ Tcl_ZlibStreamGet(
(void) TclGetByteArrayFromObj(data, &existing);
if (zshPtr->mode == TCL_ZLIB_STREAM_INFLATE) {
- if (count == (size_t)-1) {
+ if (count == TCL_AUTO_LENGTH) {
/*
* The only safe thing to do is restict to 65k. We might cause a
* panic for out of memory if we just kept growing the buffer.
@@ -1486,7 +1486,7 @@ Tcl_ZlibStreamGet(
}
} else {
Tcl_ListObjLength(NULL, zshPtr->outData, &listLen);
- if (count == (size_t)-1) {
+ if (count == TCL_AUTO_LENGTH) {
count = 0;
for (i=0; i<listLen; i++) {
Tcl_ListObjIndex(NULL, zshPtr->outData, i, &itemObj);