summaryrefslogtreecommitdiffstats
path: root/generic
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2022-04-08 09:13:24 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2022-04-08 09:13:24 (GMT)
commitb65a7b7a4c0158ebe20ac113a3e65ad1d331a397 (patch)
tree9f549b51d6cab74b37ad833fb8f6da38ac322743 /generic
parent84ff1fb2d98ae85007f676e3872803497dbea1fe (diff)
parent616b93b0239bfc54be3cc05955f22e6a07ed0127 (diff)
downloadtcl-b65a7b7a4c0158ebe20ac113a3e65ad1d331a397.zip
tcl-b65a7b7a4c0158ebe20ac113a3e65ad1d331a397.tar.gz
tcl-b65a7b7a4c0158ebe20ac113a3e65ad1d331a397.tar.bz2
Merge 8.6
Diffstat (limited to 'generic')
-rw-r--r--generic/tclStringObj.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/generic/tclStringObj.c b/generic/tclStringObj.c
index 7d4aef3..114e8a6 100644
--- a/generic/tclStringObj.c
+++ b/generic/tclStringObj.c
@@ -4394,7 +4394,7 @@ ExtendStringRepWithUnicode(
}
for (i = 0; i < numChars && size >= 0; i++) {
- size += TclUtfCount(unicode[i]);
+ size += (unsigned int)TclUtfCount(unicode[i]);
}
if (size < 0) {
Tcl_Panic("max size for a Tcl value (%d bytes) exceeded", INT_MAX);