changeset 46374 | e92ca942ddca |
parent 42070 | 675775c33ab6 |
--- a/contrib/python-zstandard/c-ext/compressoriterator.c Wed Jan 20 14:47:13 2021 +0100 +++ b/contrib/python-zstandard/c-ext/compressoriterator.c Mon Dec 14 10:44:29 2020 +0100 @@ -228,7 +228,7 @@ }; void compressoriterator_module_init(PyObject* mod) { - Py_TYPE(&ZstdCompressorIteratorType) = &PyType_Type; + Py_SET_TYPE(&ZstdCompressorIteratorType, &PyType_Type); if (PyType_Ready(&ZstdCompressorIteratorType) < 0) { return; }