mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-05-24 18:57:01 +08:00
gdb/
Fix compilation compatibility with python-2.4 * python/py-type.c (convert_field): Cast ADDRSTRING for PyObject_SetAttrString as non-const. New comment.
This commit is contained in:
@ -183,7 +183,8 @@ convert_field (struct type *type, int field)
|
||||
if (!arg)
|
||||
goto fail;
|
||||
|
||||
if (PyObject_SetAttrString (result, attrstring, arg) < 0)
|
||||
/* At least python-2.4 had the second parameter non-const. */
|
||||
if (PyObject_SetAttrString (result, (char *) attrstring, arg) < 0)
|
||||
goto failarg;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user