From 36bc4d64d9be18af0758bf26c0e5c2be2c48936a Mon Sep 17 00:00:00 2001 From: Loïc Minier Date: Tue, 2 Sep 2008 22:20:21 +0000 Subject: Fix typo (s/&type/type) introduced in r886 causing weird crashes on MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 2008-09-03 Loïc Minier * gobject/pygpointer.c: (pyg_register_pointer): Fix typo (s/&type/type) introduced in r886 causing weird crashes on x86-64; bug #550463. svn path=/trunk/; revision=961 --- ChangeLog | 6 ++++++ gobject/pygpointer.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 959be54..2b6cf95 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2008-09-03 Loïc Minier + + * gobject/pygpointer.c: (pyg_register_pointer): + Fix typo (s/&type/type) introduced in r886 causing weird crashes on + x86-64; bug #550463. + 2008-09-01 Gian Mario Tagliaretti * codegen/argtypes.py: add G_TYPE_CLOSURE boxed type in codegen. 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) { -- cgit