* c-typeprint.c (is_type_conversion_operator): Fix thinko.
authorJason Merrill <jason@redhat.com>
Thu, 10 Jan 2002 00:06:02 +0000 (00:06 +0000)
committerJason Merrill <jason@redhat.com>
Thu, 10 Jan 2002 00:06:02 +0000 (00:06 +0000)
gdb/ChangeLog
gdb/MAINTAINERS
gdb/c-typeprint.c

index 34b4a85a4811acc2004bc85cbf054cd2e7c81faa..07cf65aeb9599a4bec2a01a8708a58a298eb6565 100644 (file)
@@ -1,3 +1,7 @@
+2002-01-09  Jason Merrill  <jason@redhat.com>
+
+       * c-typeprint.c (is_type_conversion_operator): Fix thinko.
+
 2002-01-09  Michael Snyder  <msnyder@redhat.com>
 
        * i386-linux-nat.c (fill_fpxregset): Make global.
index 1df43f5568f44a4a26bef8412a6f4e0846b21b6a..0995dcae34ccec1dc2ac0733b897882a4a8b5d0f 100644 (file)
@@ -366,6 +366,7 @@ Jim Kingdon                                 jkingdon@engr.sgi.com  ++
 Jonathan Larmour                               jlarmour@redhat.co.uk
 H.J. Lu                                                hjl@lucon.org
 Glen McCready                                  gkm@redhat.com
+Jason Merrill                                  jason@redhat.com
 Jason Molenda                                  jmolenda@apple.com
 Pierre Muller                                  muller@sourceware.redhat.com
 Alexandre Oliva                                        aoliva@redhat.com
index aa7f5a5077250d0bbce6da587b00d230907aa83d..ce7fbe0de1097101b7cb7c83868f93cdcde21d51 100644 (file)
@@ -407,7 +407,9 @@ is_type_conversion_operator (struct type *type, int i, int j)
   else if (strncmp (name, "delete", 6) == 0)
     name += 6;
   else
-    return 0;
+    /* If it doesn't look like new or delete, it's a type conversion
+       operator.  */
+    return 1;
 
   /* Is that really the end of the name?  */
   if (('a' <= *name && *name <= 'z')