summaryrefslogtreecommitdiffstats
path: root/generic/tclObj.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2023-06-01 20:58:00 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2023-06-01 20:58:00 (GMT)
commit56d50aec7cab7011ab2b1e430403aa92d76e313c (patch)
tree4ff26f865524446d6bbd724ac5574a046a45bce5 /generic/tclObj.c
parentb1ee2de57303192412d22b751f2caae1d590ad90 (diff)
downloadtcl-56d50aec7cab7011ab2b1e430403aa92d76e313c.zip
tcl-56d50aec7cab7011ab2b1e430403aa92d76e313c.tar.gz
tcl-56d50aec7cab7011ab2b1e430403aa92d76e313c.tar.bz2
Fix [9921778646]: something is wrong in core-8-branch
Diffstat (limited to 'generic/tclObj.c')
-rw-r--r--generic/tclObj.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/generic/tclObj.c b/generic/tclObj.c
index 3d56a18..8cef4f4 100644
--- a/generic/tclObj.c
+++ b/generic/tclObj.c
@@ -1657,10 +1657,10 @@ int SetDuplicatePureObj(
}
}
- /* tclStringType is treated as a special case because a Tcl_Obj having this
+ /* tclUniCharStringType is treated as a special case because a Tcl_Obj having this
* type can not always update the string representation. This happens, for
* example, when Tcl_GetCharLength() converts the internal representation
- * to tclStringType in order to store the number of characters, but does
+ * to tclUniCharStringType in order to store the number of characters, but does
* not store enough information to generate the string representation.
*
* Perhaps in the future this can be remedied and this special treatment
@@ -1670,7 +1670,7 @@ int SetDuplicatePureObj(
if (bytes && (dupPtr->typePtr == NULL
|| dupPtr->typePtr->updateStringProc == NULL
- || typePtr == &tclStringType
+ || typePtr == &tclUniCharStringType
)
) {
TclInitStringRep(dupPtr, bytes, objPtr->length);
@@ -2431,12 +2431,12 @@ ParseBoolean(
int newBool;
char lowerCase[6];
Tcl_Size i, length;
- const char *str = TclGetStringFromObj(objPtr, &length);
+ const char *str = Tcl_GetStringFromObj(objPtr, &length);
if ((length == 0) || (length > 5)) {
/*
- * Longest valid boolean string rep. is "false".
- */
+ * Longest valid boolean string rep. is "false".
+ */
return TCL_ERROR;
}