[pygobject] Remove an empty structure, use sizeof(PyObject) instead



commit 95def820cb6354e7c63610e91faffd5c3a06a1ff
Author: Paul Pogonyshev <pogonyshev gmx net>
Date:   Tue Apr 21 20:25:05 2009 +0300

    Remove an empty structure, use sizeof(PyObject) instead
    
    Solves bug 560591.
---
 gobject/pygobject.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/gobject/pygobject.c b/gobject/pygobject.c
index f2d7062..b4274e1 100644
--- a/gobject/pygobject.c
+++ b/gobject/pygobject.c
@@ -422,8 +422,7 @@ static PySequenceMethods _PyGProps_as_sequence = {
     0
 };
 
-struct empty {} _empty;
-PYGLIB_DEFINE_TYPE("gobject.GPropsDescr", PyGPropsDescr_Type, _empty);
+PYGLIB_DEFINE_TYPE("gobject.GPropsDescr", PyGPropsDescr_Type, PyObject);
 
 static PyObject *
 pyg_props_descr_descr_get(PyObject *self, PyObject *obj, PyObject *type)



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]