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] |
On Wednesday, October 10 2012, Luis Gustavo wrote:
Hi,
Hey Luis :-)
1) I believe you could remove some of the parentheses in the `if' above. Something like:
if ((TYPE_CODE (result) == TYPE_CODE_PTR || TYPE_CODE (result) == TYPE_CODE_REF) && TYPE_TARGET_TYPE (result) != NULL && TYPE_CODE (TYPE_TARGET_TYPE (result)) != TYPE_CODE_VOID)
would have the same effect, right?
2) Would it be possible to provide a testcase for this issue? Not sure if it's really needed, but I guess it won't hurt :-). Of course, if some maintainer thinks it's useless, then please disconsider the idea right away.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |