Commit 655b8445 authored by Vladimir Marangozov's avatar Vladimir Marangozov

Fix a typo in the PyMem_Resize macro, found by Andrew Kuchling

parent c8e815fb
...@@ -114,7 +114,7 @@ extern DL_IMPORT(void) PyMem_Free(void *); ...@@ -114,7 +114,7 @@ extern DL_IMPORT(void) PyMem_Free(void *);
#define PyMem_New(type, n) \ #define PyMem_New(type, n) \
( (type *) PyMem_Malloc((n) * sizeof(type)) ) ( (type *) PyMem_Malloc((n) * sizeof(type)) )
#define PyMem_Resize(p, type, n) \ #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) #define PyMem_Del(p) PyMem_Free(p)
/* Macros */ /* Macros */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment