aboutsummaryrefslogtreecommitdiff
path: root/gdb/python/py-utils.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/python/py-utils.c')
-rw-r--r--gdb/python/py-utils.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/python/py-utils.c b/gdb/python/py-utils.c
index 2e32f11..9a4d1ed 100644
--- a/gdb/python/py-utils.c
+++ b/gdb/python/py-utils.c
@@ -29,7 +29,7 @@
static void
py_decref (void *p)
{
- PyObject *py = p;
+ PyObject *py = (PyObject *) p;
Py_DECREF (py);
}
@@ -50,7 +50,7 @@ make_cleanup_py_decref (PyObject *py)
static void
py_xdecref (void *p)
{
- PyObject *py = p;
+ PyObject *py = (PyObject *) p;
Py_XDECREF (py);
}
@@ -420,7 +420,7 @@ PyObject *
gdb_py_generic_dict (PyObject *self, void *closure)
{
PyObject *result;
- PyTypeObject *type_obj = closure;
+ PyTypeObject *type_obj = (PyTypeObject *) closure;
char *raw_ptr;
raw_ptr = (char *) self + type_obj->tp_dictoffset;