summaryrefslogtreecommitdiffstats
path: root/generic/tclStringObj.c
diff options
context:
space:
mode:
authorpatthoyts <patthoyts@users.sourceforge.net>2009-04-10 22:14:29 (GMT)
committerpatthoyts <patthoyts@users.sourceforge.net>2009-04-10 22:14:29 (GMT)
commite80b4afbd9fd9d7fd1753f7e1d899b7dfdb6e6af (patch)
tree91dd07bce053ca82cb54e9cb08c60dd5feb9fc86 /generic/tclStringObj.c
parentd598c88ac8004c9959466a54aef8a5b7ac3f14f3 (diff)
downloadtcl-e80b4afbd9fd9d7fd1753f7e1d899b7dfdb6e6af.zip
tcl-e80b4afbd9fd9d7fd1753f7e1d899b7dfdb6e6af.tar.gz
tcl-e80b4afbd9fd9d7fd1753f7e1d899b7dfdb6e6af.tar.bz2
silence warning preventing symbols build with msvc6 (signed/unsigned comparison)
Diffstat (limited to 'generic/tclStringObj.c')
-rw-r--r--generic/tclStringObj.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/tclStringObj.c b/generic/tclStringObj.c
index 1f221f9..dc36242 100644
--- a/generic/tclStringObj.c
+++ b/generic/tclStringObj.c
@@ -33,7 +33,7 @@
* See the file "license.terms" for information on usage and redistribution of
* this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclStringObj.c,v 1.70.2.10 2009/04/10 21:27:17 dgp Exp $ */
+ * RCS: @(#) $Id: tclStringObj.c,v 1.70.2.11 2009/04/10 22:14:29 patthoyts Exp $ */
#include "tclInt.h"
#include "tommath.h"
@@ -2922,7 +2922,7 @@ UpdateStringOfString(
*/
if (stringPtr->numChars <= INT_MAX/TCL_UTF_MAX
- && stringPtr->allocated >= stringPtr->numChars * TCL_UTF_MAX) {
+ && stringPtr->allocated >= stringPtr->numChars * (size_t)TCL_UTF_MAX) {
goto copyBytes;
}