X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/catacomb-python/blobdiff_plain/37f827cf8490f291b3da732e1a213fca1daa78a1..989638174888e6f73bcc67008469da25bb393d57:/util.c diff --git a/util.c b/util.c index 96a4052..f56c7fd 100644 --- a/util.c +++ b/util.c @@ -163,7 +163,7 @@ void *newtype(PyTypeObject *metaty, ty->ht_name = PyString_FromString(ty->ht_type.tp_name); if (ty->ht_name) ty->ht_type.tp_name = PyString_AS_STRING(ty->ht_name); - PyObject_INIT(&ty->ht_type, metaty); + DISCARD(PyObject_INIT(&ty->ht_type, metaty)); Py_INCREF(metaty); return (ty); }