diff options
author | Simon Feltman <sfeltman@src.gnome.org> | 2014-08-08 02:46:26 -0700 |
---|---|---|
committer | Simon Feltman <sfeltman@src.gnome.org> | 2014-08-08 02:48:04 -0700 |
commit | 3165c17a455652de9a61439428fa40f30120dc6a (patch) | |
tree | dd3dfc2de4255a5f3ea05ef1981dbbe972912937 /gi/pygi-struct.c | |
parent | 74dfec27c6008968cc66a13792dfb02b29c231b6 (diff) | |
download | pygobject-3165c17a455652de9a61439428fa40f30120dc6a.tar.gz |
Remove incorrect and unused casts from tp_free calls
Arguments to Py_TYPE() do not need to be cast since the macro always casts
to a PyObject* internall.
Diffstat (limited to 'gi/pygi-struct.c')
-rw-r--r-- | gi/pygi-struct.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gi/pygi-struct.c b/gi/pygi-struct.c index 692068b8..adf8e72e 100644 --- a/gi/pygi-struct.c +++ b/gi/pygi-struct.c @@ -69,7 +69,7 @@ _struct_dealloc (PyGIStruct *self) g_base_info_unref (info); } - Py_TYPE( (PyGPointer *) self )->tp_free ( (PyObject *) self); + Py_TYPE (self)->tp_free ((PyObject *)self); } static PyObject * |