diff options
Diffstat (limited to 'gi/pygpointer.c')
-rw-r--r-- | gi/pygpointer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gi/pygpointer.c b/gi/pygpointer.c index fc6482d6..6d6b62f9 100644 --- a/gi/pygpointer.c +++ b/gi/pygpointer.c @@ -114,7 +114,7 @@ pyg_register_pointer(PyObject *dict, const gchar *class_name, if (!type->tp_dealloc) type->tp_dealloc = (destructor)pyg_pointer_dealloc; - Py_TYPE(type) = &PyType_Type; + Py_SET_TYPE(type, &PyType_Type); g_assert (Py_TYPE (&PyGPointer_Type) != NULL); type->tp_base = &PyGPointer_Type; |