Fix compile time warning about a redundant comparison in an assertion statement.
authorNick Clifton <nickc@redhat.com>
Mon, 13 Jun 2016 13:22:21 +0000 (14:22 +0100)
committerNick Clifton <nickc@redhat.com>
Mon, 13 Jun 2016 13:22:21 +0000 (14:22 +0100)
* gdbtypes.c (replace_type): Fix assertion.

gdb/ChangeLog
gdb/gdbtypes.c

index 335476b29861463b6b1634d419bb20a03c9c7084..1bd309f3e2b9829a3fe3093a075d866e8471d797 100644 (file)
@@ -1,3 +1,7 @@
+2016-06-13  Nick Clifton  <nickc@redhat.com>
+
+       * gdbtypes.c (replace_type): Fix assertion.
+
 2016-06-10  Tom Tromey  <tom@tromey.com>
 
        * gdbtypes.c (arch_type, arch_integer_type, arch_character_type)
index 48f2cd3b98cf774ba4aa02dff1f57e0a663e35e0..0421cc5066a4ba7dc5ce452924b7855752cf9481 100644 (file)
@@ -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);
 
This page took 0.029819 seconds and 4 git commands to generate.