summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2002-04-12 20:49:36 (GMT)
committerTim Peters <tim.peters@gmail.com>2002-04-12 20:49:36 (GMT)
commit8a8cdfd0f5fac3f340881c9a993d1e2688ef6641 (patch)
tree60aa4f1ddd46bbf2a5968e34fedbc7d1cc3f1695 /Objects
parentd4c0e5fd5b87de56f6e66edb5d120eee59405f33 (diff)
downloadcpython-8a8cdfd0f5fac3f340881c9a993d1e2688ef6641.zip
cpython-8a8cdfd0f5fac3f340881c9a993d1e2688ef6641.tar.gz
cpython-8a8cdfd0f5fac3f340881c9a993d1e2688ef6641.tar.bz2
Small anal correctness tweaks:
_PyObject_DebugMalloc: explicitly cast PyObject_Malloc's result to the target pointer type. _PyObject_DebugDumpStats: change decl of arena_alignment from unsigned int to unsigned long. This is for the 2.3 release only (it's new code).
Diffstat (limited to 'Objects')
-rw-r--r--Objects/obmalloc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Objects/obmalloc.c b/Objects/obmalloc.c
index 66e0b7c..1371141 100644
--- a/Objects/obmalloc.c
+++ b/Objects/obmalloc.c
@@ -964,7 +964,7 @@ _PyObject_DebugMalloc(size_t nbytes)
return NULL;
}
- p = PyObject_Malloc(total);
+ p = (uchar *)PyObject_Malloc(total);
if (p == NULL)
return NULL;
@@ -1231,7 +1231,7 @@ _PyObject_DebugDumpStats(void)
/* # of free pools + pools not yet carved out of current arena */
uint numfreepools = 0;
/* # of bytes for arena alignment padding */
- uint arena_alignment = 0;
+ ulong arena_alignment = 0;
/* # of bytes in used and full pools used for pool_headers */
ulong pool_header_bytes = 0;
/* # of bytes in used and full pools wasted due to quantization,