summaryrefslogtreecommitdiff
path: root/gi/pygi-boxed.c
diff options
context:
space:
mode:
Diffstat (limited to 'gi/pygi-boxed.c')
-rw-r--r--gi/pygi-boxed.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gi/pygi-boxed.c b/gi/pygi-boxed.c
index 3ab826d7..9deb62a7 100644
--- a/gi/pygi-boxed.c
+++ b/gi/pygi-boxed.c
@@ -238,7 +238,7 @@ static PyMethodDef boxed_methods[] = {
int
pygi_boxed_register_types (PyObject *m)
{
- Py_TYPE(&PyGIBoxed_Type) = &PyType_Type;
+ Py_SET_TYPE(&PyGIBoxed_Type, &PyType_Type);
g_assert (Py_TYPE (&PyGBoxed_Type) != NULL);
PyGIBoxed_Type.tp_base = &PyGBoxed_Type;
PyGIBoxed_Type.tp_new = (newfunc) boxed_new;