diff options
author | Vladimir Marangozov <vladimir.marangozov@t-online.de> | 2000-08-13 11:59:08 (GMT) |
---|---|---|
committer | Vladimir Marangozov <vladimir.marangozov@t-online.de> | 2000-08-13 11:59:08 (GMT) |
commit | dcb45c34f59d7f35f27364eb66cafd94eb31e30e (patch) | |
tree | 37de89675fd3c34b84e1b07fc63e6c54a677ce7b /Include/pymem.h | |
parent | e8e9d114536233639f90e5878cd32983bd875124 (diff) | |
download | cpython-dcb45c34f59d7f35f27364eb66cafd94eb31e30e.zip cpython-dcb45c34f59d7f35f27364eb66cafd94eb31e30e.tar.gz cpython-dcb45c34f59d7f35f27364eb66cafd94eb31e30e.tar.bz2 |
Fix a typo in the PyMem_Resize macro, found by Andrew Kuchling
Diffstat (limited to 'Include/pymem.h')
-rw-r--r-- | Include/pymem.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Include/pymem.h b/Include/pymem.h index adcc739..09067a8 100644 --- a/Include/pymem.h +++ b/Include/pymem.h @@ -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 */ |