mirror of https://github.com/python/cpython.git
Fix a typo in the PyMem_Resize macro, found by Andrew Kuchling
This commit is contained in:
parent
e8e9d11453
commit
dcb45c34f5
|
@ -114,7 +114,7 @@ extern DL_IMPORT(void) PyMem_Free(void *);
|
|||
#define PyMem_New(type, n) \
|
||||
( (type *) PyMem_Malloc((n) * sizeof(type)) )
|
||||
#define PyMem_Resize(p, type, n) \
|
||||
( (p) = (type *) PyMem_Realloc((n) * sizeof(type)) )
|
||||
( (p) = (type *) PyMem_Realloc((p), (n) * sizeof(type)) )
|
||||
#define PyMem_Del(p) PyMem_Free(p)
|
||||
|
||||
/* Macros */
|
||||
|
|
Loading…
Reference in New Issue