From dcb45c34f59d7f35f27364eb66cafd94eb31e30e Mon Sep 17 00:00:00 2001 From: Vladimir Marangozov Date: Sun, 13 Aug 2000 11:59:08 +0000 Subject: Fix a typo in the PyMem_Resize macro, found by Andrew Kuchling --- Include/pymem.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 */ -- cgit v0.12