From d30eaa00001670c9031797d534be65f1c21a868b Mon Sep 17 00:00:00 2001 From: dgp Date: Wed, 11 Feb 2009 18:07:48 +0000 Subject: * generic/tclStringObj.c: Changed type of the 'allocated' field * generic/tclTestObj.c: of the String struct (and the TestString counterpart) from size_t to int since only int values are ever stored in it. --- ChangeLog | 5 +++-- generic/tclTestObj.c | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index af98add..cf18b17 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,7 +1,8 @@ 2009-02-11 Don Porter - * generic/tclStringObj.c: Changed type of the 'allocated' field - of the String struct from size_t to int since only int values are + * generic/tclStringObj.c: Changed type of the 'allocated' field + * generic/tclTestObj.c: of the String struct (and the + TestString counterpart) from size_t to int since only int values are ever stored in it. 2009-02-10 Jan Nijtmans diff --git a/generic/tclTestObj.c b/generic/tclTestObj.c index e0dddce..73cca56 100644 --- a/generic/tclTestObj.c +++ b/generic/tclTestObj.c @@ -13,7 +13,7 @@ * See the file "license.terms" for information on usage and redistribution of * this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclTestObj.c,v 1.29 2009/02/10 23:09:07 nijtmans Exp $ + * RCS: @(#) $Id: tclTestObj.c,v 1.30 2009/02/11 18:07:56 dgp Exp $ */ #include "tclInt.h" @@ -55,7 +55,7 @@ static int TeststringobjCmd(ClientData dummy, Tcl_Interp *interp, typedef struct TestString { int numChars; - size_t allocated; + int allocated; size_t uallocated; Tcl_UniChar unicode[2]; } TestString; -- cgit v0.12