diff options
Diffstat (limited to 'siplib')
| -rw-r--r-- | siplib/sip-tqt.h | 4 | ||||
| -rw-r--r-- | siplib/siplib.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/siplib/sip-tqt.h b/siplib/sip-tqt.h index 02585cd..b2c6e52 100644 --- a/siplib/sip-tqt.h +++ b/siplib/sip-tqt.h @@ -46,8 +46,8 @@ extern "C" { /* Sanity check on the Python version. */ -#if PY_VERSION_HEX < 0x03030000 -#error "This version of SIP-TQt requires Python v3.3 or later" +#if PY_VERSION_HEX < 0x03040000 +#error "This version of SIP-TQt requires Python v3.4 or later" #endif diff --git a/siplib/siplib.c b/siplib/siplib.c index c58a47a..b891f79 100644 --- a/siplib/siplib.c +++ b/siplib/siplib.c @@ -1610,7 +1610,7 @@ void *sip_api_malloc(size_t nbytes) { void *mem; - if ((mem = PyMem_Malloc(nbytes)) == NULL) + if ((mem = PyMem_RawMalloc(nbytes)) == NULL) PyErr_NoMemory(); return mem; @@ -1622,7 +1622,7 @@ void *sip_api_malloc(size_t nbytes) */ void sip_api_free(void *mem) { - PyMem_Free(mem); + PyMem_RawFree(mem); } |
