summaryrefslogtreecommitdiffstats
path: root/generic/tclStringRep.h
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2022-01-14 10:29:31 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2022-01-14 10:29:31 (GMT)
commit9313b767a51519d351457e037a2e55738801f8e0 (patch)
treeb613fea0880aa13bd6d80bc9017e7d9869fe96ce /generic/tclStringRep.h
parent1dec5c759982e209781ee01e37a72d19be2077a2 (diff)
parentf1b74b07572c8ac168a3313a6c71ec30f1a7485c (diff)
downloadtcl-9313b767a51519d351457e037a2e55738801f8e0.zip
tcl-9313b767a51519d351457e037a2e55738801f8e0.tar.gz
tcl-9313b767a51519d351457e037a2e55738801f8e0.tar.bz2
Merge 8.7. Fix (windows MSVC OPTS=symbols) build error
Diffstat (limited to 'generic/tclStringRep.h')
-rw-r--r--generic/tclStringRep.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/generic/tclStringRep.h b/generic/tclStringRep.h
index 7735d14..fdbe119 100644
--- a/generic/tclStringRep.h
+++ b/generic/tclStringRep.h
@@ -69,7 +69,7 @@ typedef struct {
} String;
#define STRING_SIZE(numChars) \
- (offsetof(String, unicode) + (((numChars) + 1) * sizeof(Tcl_UniChar)))
+ (offsetof(String, unicode) + (((numChars) + 1U) * sizeof(Tcl_UniChar)))
#define stringAttemptAlloc(numChars) \
(String *) Tcl_AttemptAlloc(STRING_SIZE(numChars))
#define stringAlloc(numChars) \