Mailing List Archive

python/dist/src/Objects obmalloc.c,2.38,2.39
Update of /cvsroot/python/python/dist/src/Objects
In directory usw-pr-cvs1:/tmp/cvs-serv22429/python/Objects

Modified Files:
obmalloc.c
Log Message:
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).


Index: obmalloc.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Objects/obmalloc.c,v
retrieving revision 2.38
retrieving revision 2.39
diff -C2 -d -r2.38 -r2.39
*** obmalloc.c 12 Apr 2002 08:52:50 -0000 2.38
--- obmalloc.c 12 Apr 2002 20:49:36 -0000 2.39
***************
*** 965,969 ****
}

! p = PyObject_Malloc(total);
if (p == NULL)
return NULL;
--- 965,969 ----
}

! p = (uchar *)PyObject_Malloc(total);
if (p == NULL)
return NULL;
***************
*** 1232,1236 ****
uint numfreepools = 0;
/* # of bytes for arena alignment padding */
! uint arena_alignment = 0;
/* # of bytes in used and full pools used for pool_headers */
ulong pool_header_bytes = 0;
--- 1232,1236 ----
uint numfreepools = 0;
/* # of bytes for arena alignment padding */
! ulong arena_alignment = 0;
/* # of bytes in used and full pools used for pool_headers */
ulong pool_header_bytes = 0;