summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2001-10-23 13:14:38 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2001-10-23 13:14:38 (GMT)
commitf524242bf5ebdbcbf78d2625a54571c2d6d1830c (patch)
treeaafc5299bfdf5e49a9f2fc104ef2b8e3f01d58bb
parent3e82a9f65c013278062604f291771dc0a3ad2f70 (diff)
downloadtcl-f524242bf5ebdbcbf78d2625a54571c2d6d1830c.zip
tcl-f524242bf5ebdbcbf78d2625a54571c2d6d1830c.tar.gz
tcl-f524242bf5ebdbcbf78d2625a54571c2d6d1830c.tar.bz2
Some places prefer string lengths to be unsigned.
-rw-r--r--generic/tclIndexObj.c4
-rw-r--r--generic/tclObj.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/generic/tclIndexObj.c b/generic/tclIndexObj.c
index 6934dce..a0fedd6 100644
--- a/generic/tclIndexObj.c
+++ b/generic/tclIndexObj.c
@@ -10,7 +10,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclIndexObj.c,v 1.10.6.7 2001/10/22 15:20:33 dgp Exp $
+ * RCS: @(#) $Id: tclIndexObj.c,v 1.10.6.8 2001/10/23 13:14:38 dkf Exp $
*/
#include "tclInt.h"
@@ -349,7 +349,7 @@ UpdateStringOfIndex(objPtr)
{
IndexRep *indexRep = (IndexRep *) objPtr->internalRep.otherValuePtr;
register char *buf;
- register int len;
+ register unsigned len;
register char *indexStr = EXPAND_OF(indexRep);
len = strlen(indexStr);
diff --git a/generic/tclObj.c b/generic/tclObj.c
index 38a3fc7..97ba2ae 100644
--- a/generic/tclObj.c
+++ b/generic/tclObj.c
@@ -11,7 +11,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclObj.c,v 1.23.6.12 2001/10/18 14:19:39 dkf Exp $
+ * RCS: @(#) $Id: tclObj.c,v 1.23.6.13 2001/10/23 13:14:38 dkf Exp $
*/
#include "tclInt.h"
@@ -2164,7 +2164,7 @@ UpdateStringOfWideInt(objPtr)
register Tcl_Obj *objPtr; /* Int object whose string rep to update. */
{
char buffer[TCL_INTEGER_SPACE+2];
- register int len;
+ register unsigned len;
register Tcl_WideInt wideVal = objPtr->internalRep.wideValue;
sprintf(buffer, "%" TCL_LL_MODIFIER "d", wideVal);