diff options
author | dkf <dkf@noemail.net> | 2005-12-20 22:16:47 (GMT) |
---|---|---|
committer | dkf <dkf@noemail.net> | 2005-12-20 22:16:47 (GMT) |
commit | 0994e979c181ec42f5c040b1f022ced0954d88d6 (patch) | |
tree | 428ded63206fefc8bc4d043389d2645559afec6c /generic/tclThreadAlloc.c | |
parent | 0a10d912c9c59f737d20d815e2d1919b349c7985 (diff) | |
download | tcl-0994e979c181ec42f5c040b1f022ced0954d88d6.zip tcl-0994e979c181ec42f5c040b1f022ced0954d88d6.tar.gz tcl-0994e979c181ec42f5c040b1f022ced0954d88d6.tar.bz2 |
Use %ld instead of %d in Tcl_GetMemoryInfo
FossilOrigin-Name: 7458ff197de58747c9391c4333d1d6be6e0cdf9e
Diffstat (limited to 'generic/tclThreadAlloc.c')
-rwxr-xr-x | generic/tclThreadAlloc.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/generic/tclThreadAlloc.c b/generic/tclThreadAlloc.c index 392d1d8..9c77910 100755 --- a/generic/tclThreadAlloc.c +++ b/generic/tclThreadAlloc.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: tclThreadAlloc.c,v 1.19 2005/11/27 02:33:49 das Exp $ + * RCS: @(#) $Id: tclThreadAlloc.c,v 1.20 2005/12/20 22:16:48 dkf Exp $ */ #include "tclInt.h" @@ -79,15 +79,15 @@ typedef struct Block { typedef struct Bucket { Block *firstPtr; /* First block available */ - int numFree; /* Number of blocks available */ + long numFree; /* Number of blocks available */ /* All fields below for accounting only */ - int numRemoves; /* Number of removes from bucket */ - int numInserts; /* Number of inserts into bucket */ - int numWaits; /* Number of waits to acquire a lock */ - int numLocks; /* Number of locks acquired */ - int totalAssigned; /* Total space assigned to bucket */ + long numRemoves; /* Number of removes from bucket */ + long numInserts; /* Number of inserts into bucket */ + long numWaits; /* Number of waits to acquire a lock */ + long numLocks; /* Number of locks acquired */ + long totalAssigned; /* Total space assigned to bucket */ } Bucket; /* @@ -630,8 +630,8 @@ Tcl_GetMemoryInfo( Tcl_DStringAppendElement(dsPtr, buf); } for (n = 0; n < NBUCKETS; ++n) { - sprintf(buf, "%d %d %d %d %d %d %d", - (int) bucketInfo[n].blockSize, + sprintf(buf, "%lu %ld %ld %ld %ld %ld %ld", + (unsigned long) bucketInfo[n].blockSize, cachePtr->buckets[n].numFree, cachePtr->buckets[n].numRemoves, cachePtr->buckets[n].numInserts, |