* ada-lang.c (compare_names): Call is_name_suffix with string1

instead of string2.
This commit is contained in:
Andreas Schwab 2011-03-07 18:29:13 +00:00
parent 6bf58e63b7
commit 052874e8a4
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2011-03-07 Andreas Schwab <schwab@linux-m68k.org>
* ada-lang.c (compare_names): Call is_name_suffix with string1
instead of string2.
2011-03-07 Tom Tromey <tromey@redhat.com>
* xcoffread.c (xcoff_sym_fns): Update.

View File

@ -4757,7 +4757,7 @@ compare_names (const char *string1, const char *string2)
case '_':
if (*string2 == '\0')
{
if (is_name_suffix (string2))
if (is_name_suffix (string1))
return 0;
else
return -1;