summaryrefslogtreecommitdiffstats
path: root/Include/pymem.h
diff options
context:
space:
mode:
authorVladimir Marangozov <vladimir.marangozov@t-online.de>2000-08-13 11:59:08 (GMT)
committerVladimir Marangozov <vladimir.marangozov@t-online.de>2000-08-13 11:59:08 (GMT)
commitdcb45c34f59d7f35f27364eb66cafd94eb31e30e (patch)
tree37de89675fd3c34b84e1b07fc63e6c54a677ce7b /Include/pymem.h
parente8e9d114536233639f90e5878cd32983bd875124 (diff)
downloadcpython-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.h2
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 */