aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdbtypes.c
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2016-06-13 14:22:21 +0100
committerNick Clifton <nickc@redhat.com>2016-06-13 14:22:21 +0100
commite46dd0f46b9a2ac2b07343b91c447620ede47d26 (patch)
tree64979a865fd09b7c32ee1ffdb70c2fb69ac20b72 /gdb/gdbtypes.c
parent0a8be2fe269b769c01b0daa1b967eba51dea4af5 (diff)
Fix compile time warning about a redundant comparison in an assertion statement.
* gdbtypes.c (replace_type): Fix assertion.
Diffstat (limited to 'gdb/gdbtypes.c')
-rw-r--r--gdb/gdbtypes.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/gdbtypes.c b/gdb/gdbtypes.c
index 48f2cd3b98..0421cc5066 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);