diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2022-01-24 11:53:34 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2022-01-24 11:53:34 (GMT) |
commit | 8997eb06b951e71416f99c512ebed977f8cb61fb (patch) | |
tree | 2a8a720fea27602a18b4dc6201fa9bceb50e345d /generic/tclStringObj.c | |
parent | 53ba10085a9de8ab30a7372eba6bfc937ff07dc5 (diff) | |
download | tcl-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.c | 4 |
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; } |