summaryrefslogtreecommitdiff
path: root/gi/pygi-boxed.c
diff options
context:
space:
mode:
authorSimon Feltman <sfeltman@src.gnome.org>2014-08-08 02:46:26 -0700
committerSimon Feltman <sfeltman@src.gnome.org>2014-08-08 02:48:04 -0700
commit3165c17a455652de9a61439428fa40f30120dc6a (patch)
treedd3dfc2de4255a5f3ea05ef1981dbbe972912937 /gi/pygi-boxed.c
parent74dfec27c6008968cc66a13792dfb02b29c231b6 (diff)
downloadpygobject-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-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 b46cdcc5..4fd90d2d 100644
--- a/gi/pygi-boxed.c
+++ b/gi/pygi-boxed.c
@@ -39,7 +39,7 @@ _boxed_dealloc (PyGIBoxed *self)
}
}
- Py_TYPE( (PyGObject *) self)->tp_free ( (PyObject *) self);
+ Py_TYPE (self)->tp_free ((PyObject *)self);
}
void *