From e46dd0f46b9a2ac2b07343b91c447620ede47d26 Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Mon, 13 Jun 2016 14:22:21 +0100 Subject: [PATCH] Fix compile time warning about a redundant comparison in an assertion statement. * gdbtypes.c (replace_type): Fix assertion. --- gdb/ChangeLog | 4 ++++ gdb/gdbtypes.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) 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); -- 2.30.2