From f524242bf5ebdbcbf78d2625a54571c2d6d1830c Mon Sep 17 00:00:00 2001 From: dkf Date: Tue, 23 Oct 2001 13:14:38 +0000 Subject: Some places prefer string lengths to be unsigned. --- generic/tclIndexObj.c | 4 ++-- generic/tclObj.c | 4 ++-- 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); -- cgit v0.12