diff options
Diffstat (limited to 'gdb/python/py-objfile.c')
-rw-r--r-- | gdb/python/py-objfile.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/python/py-objfile.c b/gdb/python/py-objfile.c index 5dc9ae6..ed2fe74 100644 --- a/gdb/python/py-objfile.c +++ b/gdb/python/py-objfile.c @@ -615,7 +615,7 @@ static void py_free_objfile (struct objfile *objfile, void *datum) { struct cleanup *cleanup; - objfile_object *object = datum; + objfile_object *object = (objfile_object *) datum; cleanup = ensure_python_env (get_objfile_arch (objfile), current_language); object->objfile = NULL; @@ -633,7 +633,7 @@ objfile_to_objfile_object (struct objfile *objfile) { objfile_object *object; - object = objfile_data (objfile, objfpy_objfile_data_key); + object = (objfile_object *) objfile_data (objfile, objfpy_objfile_data_key); if (!object) { object = PyObject_New (objfile_object, &objfile_object_type); |