summaryrefslogtreecommitdiffstats
path: root/generic/tclStringObj.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2024-05-23 13:44:55 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2024-05-23 13:44:55 (GMT)
commit5862bbf9a4dc0cd16bda094a60e69432d0012f9b (patch)
treef5086b3bf483f060c8761b4ef088a4743722c39a /generic/tclStringObj.c
parent8f0977e1fe9207fa6ad85c181984893e30ffe034 (diff)
parent6dfbae1ff150ae6c82c44c7a19e3d8657c15ba1e (diff)
downloadtcl-5862bbf9a4dc0cd16bda094a60e69432d0012f9b.zip
tcl-5862bbf9a4dc0cd16bda094a60e69432d0012f9b.tar.gz
tcl-5862bbf9a4dc0cd16bda094a60e69432d0012f9b.tar.bz2
Merge 8.7
Diffstat (limited to 'generic/tclStringObj.c')
-rw-r--r--generic/tclStringObj.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/generic/tclStringObj.c b/generic/tclStringObj.c
index 05c578e..6d16be5 100644
--- a/generic/tclStringObj.c
+++ b/generic/tclStringObj.c
@@ -1,9 +1,9 @@
/*
* tclStringObj.c --
*
- * This file contains functions that implement string operations on Tcl
- * objects. Some string operations work with UTF-8 encoding forms.
- * Functions that require knowledge of the width of each character,
+ * This file contains functions that implement string operations on Tcl
+ * objects. Some string operations work with UTF-8 encoding forms.
+ * Functions that require knowledge of the width of each character,
* such as indexing, operate on fixed width encoding forms such as UTF-32.
*
* Conceptually, a string is a sequence of Unicode code points. Internally
@@ -15,10 +15,10 @@
* numChars, but we don't store the fixed form encoding (unless
* Tcl_GetUnicode is explicitly called).
*
- * The String object type stores one or both formats. The default
- * behavior is to store UTF-8. Once UTF-16/UTF32 is calculated, it is
- * stored in the internal rep for future access (without an additional
- * O(n) cost).
+ * The String object type stores one or both formats. The default
+ * behavior is to store UTF-8. Once UTF-16/UTF32 is calculated, it is
+ * stored in the internal rep for future access (without an additional
+ * O(n) cost).
*
* To allow many appends to be done to an object without constantly
* reallocating space, we allocate double the space and use the
@@ -2412,7 +2412,7 @@ Tcl_AppendFormatToObj(
numDigits = 1;
}
TclNewObj(pure);
- Tcl_SetObjLength(pure, numDigits);
+ Tcl_SetObjLength(pure, (Tcl_Size)numDigits);
bytes = TclGetString(pure);
toAppend = length = numDigits;
while (numDigits--) {