diff options
Diffstat (limited to 'gi/pyginterface.c')
-rw-r--r-- | gi/pyginterface.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gi/pyginterface.c b/gi/pyginterface.c index b6e55296..34db8fac 100644 --- a/gi/pyginterface.c +++ b/gi/pyginterface.c @@ -69,7 +69,7 @@ pyg_register_interface(PyObject *dict, const gchar *class_name, { PyObject *o; - Py_TYPE(type) = &PyType_Type; + Py_SET_TYPE(type, &PyType_Type); g_assert (Py_TYPE (&PyGInterface_Type) != NULL); type->tp_base = &PyGInterface_Type; |