diff options
author | Vladimir Marangozov <vladimir.marangozov@t-online.de> | 2000-08-13 11:59:08 +0000 |
---|---|---|
committer | Vladimir Marangozov <vladimir.marangozov@t-online.de> | 2000-08-13 11:59:08 +0000 |
commit | 655b844567337c0fc6b8c700c4e482d056fe549f (patch) | |
tree | e9f503ac209e167008a28a2174689329fb27bfd6 /Include | |
parent | c8e815fb8b3d9edbd1d7d43c4ff208fbc2fb518d (diff) | |
download | cpython-655b844567337c0fc6b8c700c4e482d056fe549f.tar.gz |
Fix a typo in the PyMem_Resize macro, found by Andrew Kuchling
Diffstat (limited to 'Include')
-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 adcc7399ce..09067a8fba 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 */ |