summaryrefslogtreecommitdiffstats
path: root/generic
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2005-12-20 22:16:48 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2005-12-20 22:16:48 (GMT)
commit18d6765361d9e2703b6f02c23d4edb0c79dffbf6 (patch)
tree428ded63206fefc8bc4d043389d2645559afec6c /generic
parentdaebf10e2ccb834224974521717da8f39bc873d1 (diff)
downloadtcl-18d6765361d9e2703b6f02c23d4edb0c79dffbf6.zip
tcl-18d6765361d9e2703b6f02c23d4edb0c79dffbf6.tar.gz
tcl-18d6765361d9e2703b6f02c23d4edb0c79dffbf6.tar.bz2
Use %ld instead of %d in Tcl_GetMemoryInfo
Diffstat (limited to 'generic')
-rwxr-xr-xgeneric/tclThreadAlloc.c18
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,