summaryrefslogtreecommitdiffstats
path: root/generic/tclStringObj.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2022-01-24 11:53:34 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2022-01-24 11:53:34 (GMT)
commit8997eb06b951e71416f99c512ebed977f8cb61fb (patch)
tree2a8a720fea27602a18b4dc6201fa9bceb50e345d /generic/tclStringObj.c
parent53ba10085a9de8ab30a7372eba6bfc937ff07dc5 (diff)
downloadtcl-8997eb06b951e71416f99c512ebed977f8cb61fb.zip
tcl-8997eb06b951e71416f99c512ebed977f8cb61fb.tar.gz
tcl-8997eb06b951e71416f99c512ebed977f8cb61fb.tar.bz2
Tcl Dicts > 2^31 elements too
Diffstat (limited to 'generic/tclStringObj.c')
-rw-r--r--generic/tclStringObj.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/tclStringObj.c b/generic/tclStringObj.c
index b52e33c..65c9983 100644
--- a/generic/tclStringObj.c
+++ b/generic/tclStringObj.c
@@ -466,14 +466,14 @@ int
TclCheckEmptyString(
Tcl_Obj *objPtr)
{
- int length = -1;
+ size_t length = TCL_INDEX_NONE;
if (objPtr->bytes == &tclEmptyString) {
return TCL_EMPTYSTRING_YES;
}
if (TclListObjIsCanonical(objPtr)) {
- TclListObjLength_(NULL, objPtr, &length);
+ Tcl_ListObjLength(NULL, objPtr, &length);
return length == 0;
}