summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorandreas_kupries <andreas_kupries@noemail.net>2009-04-22 17:21:10 (GMT)
committerandreas_kupries <andreas_kupries@noemail.net>2009-04-22 17:21:10 (GMT)
commit4df439ad8f510e5ae0272c1b0803e7662ae05992 (patch)
tree4b94f7f0cd22892ca56e3bb365b14c572bfd0513
parentc5912754a750d4c706aacb9bf8304886fafaa69f (diff)
downloadtcl-4df439ad8f510e5ae0272c1b0803e7662ae05992.zip
tcl-4df439ad8f510e5ae0272c1b0803e7662ae05992.tar.gz
tcl-4df439ad8f510e5ae0272c1b0803e7662ae05992.tar.bz2
* generic/tclStringObj.c (UpdateStringOfString): Added cast to fix
signed/unsigned mismatch breaking win32 symbol/debug build. FossilOrigin-Name: 425b383f6fef91fc6b0939ab425f42bd31597f3a
-rw-r--r--ChangeLog5
-rw-r--r--generic/tclStringObj.c4
2 files changed, 7 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 23df02f..12f4ef3 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2009-04-22 Andreas Kupries <andreask@activestate.com>
+
+ * generic/tclStringObj.c (UpdateStringOfString): Added cast to fix
+ signed/unsigned mismatch breaking win32 symbol/debug build.
+
2009-04-15 Don Porter <dgp@users.sourceforge.net>
* generic/tclStringObj.c: AppendUnicodeToUnicodeRep failed
diff --git a/generic/tclStringObj.c b/generic/tclStringObj.c
index e6118c6..19f8723 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.32.2.11 2009/04/15 19:22:44 das Exp $ */
+ * RCS: @(#) $Id: tclStringObj.c,v 1.32.2.12 2009/04/22 17:21:10 andreas_kupries Exp $ */
#include "tclInt.h"
@@ -1929,7 +1929,7 @@ UpdateStringOfString(objPtr)
*/
if (stringPtr->numChars <= INT_MAX/TCL_UTF_MAX
- && stringPtr->allocated >= stringPtr->numChars * TCL_UTF_MAX) {
+ && stringPtr->allocated >= (size_t) (stringPtr->numChars * TCL_UTF_MAX)) {
goto copyBytes;
}