From: Nick Clifton Date: Mon, 13 Jun 2016 13:22:21 +0000 (+0100) Subject: Fix compile time warning about a redundant comparison in an assertion statement. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e46dd0f46b9a2ac2b07343b91c447620ede47d26;p=binutils-gdb.git Fix compile time warning about a redundant comparison in an assertion statement. * gdbtypes.c (replace_type): Fix assertion. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 335476b2986..1bd309f3e2b 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2016-06-13 Nick Clifton + + * gdbtypes.c (replace_type): Fix assertion. + 2016-06-10 Tom Tromey * gdbtypes.c (arch_type, arch_integer_type, arch_character_type) diff --git a/gdb/gdbtypes.c b/gdb/gdbtypes.c index 48f2cd3b98c..0421cc5066a 100644 --- a/gdb/gdbtypes.c +++ b/gdb/gdbtypes.c @@ -756,7 +756,7 @@ replace_type (struct type *ntype, struct type *type) the assignment of one type's main type structure to the other will produce a type with references to objects (names; field lists; etc.) allocated on an objfile other than its own. */ - gdb_assert (TYPE_OBJFILE (ntype) == TYPE_OBJFILE (ntype)); + gdb_assert (TYPE_OBJFILE (ntype) == TYPE_OBJFILE (type)); *TYPE_MAIN_TYPE (ntype) = *TYPE_MAIN_TYPE (type);