This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Wrap PyObject_Get/HasAttrString in a function with second arg having const qualifier.


On 06/09/2014 02:42 PM, Siva Chandra wrote:
> @@ -555,7 +555,7 @@ get_field_flag (PyObject *field, const char *flag_name)
>  {
>    int flag_value;
>    /* Python 2.4 did not have a 'const' here.  */

Oh, and this comment is stale here now.

> -  PyObject *flag_object = PyObject_GetAttrString (field, (char *) flag_name);
> +  PyObject *flag_object = PyObject_GetAttrString (field, flag_name);

-- 
Pedro Alves


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]