diff options
Diffstat (limited to 'gdb/python/python.c')
-rw-r--r-- | gdb/python/python.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/python/python.c b/gdb/python/python.c index 2031c0c..1c2d5c6 100644 --- a/gdb/python/python.c +++ b/gdb/python/python.c @@ -1458,7 +1458,7 @@ gdbpy_apply_type_printers (const struct extension_language_defn *extlang, struct cleanup *cleanups; PyObject *type_obj, *type_module = NULL, *func = NULL; PyObject *result_obj = NULL; - PyObject *printers_obj = ext_printers->py_type_printers; + PyObject *printers_obj = (PyObject *) ext_printers->py_type_printers; char *result = NULL; if (printers_obj == NULL) @@ -1524,7 +1524,7 @@ gdbpy_free_type_printers (const struct extension_language_defn *extlang, struct ext_lang_type_printers *ext_printers) { struct cleanup *cleanups; - PyObject *printers = ext_printers->py_type_printers; + PyObject *printers = (PyObject *) ext_printers->py_type_printers; if (printers == NULL) return; |