contrib/python-zstandard/c-ext/decompressor.c
changeset 46446 e92ca942ddca
parent 42671 a4e32fd539ab
--- a/contrib/python-zstandard/c-ext/decompressor.c	Wed Jan 20 14:47:13 2021 +0100
+++ b/contrib/python-zstandard/c-ext/decompressor.c	Mon Dec 14 10:44:29 2020 +0100
@@ -1811,7 +1811,7 @@
 };
 
 void decompressor_module_init(PyObject* mod) {
-	Py_TYPE(&ZstdDecompressorType) = &PyType_Type;
+	Py_SET_TYPE(&ZstdDecompressorType, &PyType_Type);
 	if (PyType_Ready(&ZstdDecompressorType) < 0) {
 		return;
 	}