summaryrefslogtreecommitdiffstats
path: root/generic/tclZlib.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2022-01-24 08:18:17 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2022-01-24 08:18:17 (GMT)
commit53ba10085a9de8ab30a7372eba6bfc937ff07dc5 (patch)
tree4b2a17af7218bb8a0fcee4b7011c33d675b102f1 /generic/tclZlib.c
parent7864030700db5ec4c260fd7cb4ab602d8730cea2 (diff)
downloadtcl-53ba10085a9de8ab30a7372eba6bfc937ff07dc5.zip
tcl-53ba10085a9de8ab30a7372eba6bfc937ff07dc5.tar.gz
tcl-53ba10085a9de8ab30a7372eba6bfc937ff07dc5.tar.bz2
TIP #616: Tcl lists > 2^31 elements. WIP
Diffstat (limited to 'generic/tclZlib.c')
-rw-r--r--generic/tclZlib.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/generic/tclZlib.c b/generic/tclZlib.c
index 7e1b379..b874750 100644
--- a/generic/tclZlib.c
+++ b/generic/tclZlib.c
@@ -1373,7 +1373,7 @@ Tcl_ZlibStreamGet(
Tcl_DecrRefCount(zshPtr->currentInput);
zshPtr->currentInput = NULL;
}
- Tcl_ListObjLength(NULL, zshPtr->inData, &listLen);
+ TclListObjLength_(NULL, zshPtr->inData, &listLen);
if (listLen > 0) {
/*
* There is more input available, get it from the list and
@@ -1422,7 +1422,7 @@ Tcl_ZlibStreamGet(
e = inflate(&zshPtr->stream, zshPtr->flush);
}
};
- Tcl_ListObjLength(NULL, zshPtr->inData, &listLen);
+ TclListObjLength_(NULL, zshPtr->inData, &listLen);
while ((zshPtr->stream.avail_out > 0)
&& (e == Z_OK || e == Z_BUF_ERROR) && (listLen > 0)) {
@@ -1502,7 +1502,7 @@ Tcl_ZlibStreamGet(
inflateEnd(&zshPtr->stream);
}
} else {
- Tcl_ListObjLength(NULL, zshPtr->outData, &listLen);
+ TclListObjLength_(NULL, zshPtr->outData, &listLen);
if (count == TCL_INDEX_NONE) {
count = 0;
for (i=0; i<listLen; i++) {
@@ -1524,7 +1524,7 @@ Tcl_ZlibStreamGet(
dataPtr += existing;
while ((count > dataPos) &&
- (Tcl_ListObjLength(NULL, zshPtr->outData, &listLen) == TCL_OK)
+ (TclListObjLength_(NULL, zshPtr->outData, &listLen) == TCL_OK)
&& (listLen > 0)) {
/*
* Get the next chunk off our list of chunks and grab the data out