summaryrefslogtreecommitdiffstats
path: root/gobject
diff options
context:
space:
mode:
Diffstat (limited to 'gobject')
-rw-r--r--gobject/pygpointer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gobject/pygpointer.c b/gobject/pygpointer.c
index 5f88b31..c955c3d 100644
--- a/gobject/pygpointer.c
+++ b/gobject/pygpointer.c
@@ -108,7 +108,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_TYPE(type) = &PyType_Type;
type->tp_base = &PyGPointer_Type;
if (PyType_Ready(type) < 0) {