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 2/2] Fix overload resolution of int* vs void*


> Date: Fri, 08 Oct 2010 15:05:23 -0400
> From: sami wagiaalla <swagiaal@redhat.com>
> CC: gdb-patches@sourceware.org
> 
> +  if (TYPE_NAME (a) && TYPE_NAME (b)
> +      && !strcmp (TYPE_NAME (a), TYPE_NAME (b)))
> +    return 1;

A minor stylistic nit: can we please use `strcmp (...) == 0' instead
of `!strcmp (...)'?  It will produce the same code, but is slightly
more readable.

Thanks.


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