c-typeck.c (tagged_types_tu_compatible_p): Fix pasto in my previous patch.
authorAndrew Pinski <pinskia@physics.uc.edu>
Sat, 28 Feb 2004 23:23:30 +0000 (23:23 +0000)
committerAndrew Pinski <pinskia@gcc.gnu.org>
Sat, 28 Feb 2004 23:23:30 +0000 (15:23 -0800)
2004-02-28  Andrew Pinski  <pinskia@physics.uc.edu>

        * c-typeck.c (tagged_types_tu_compatible_p): Fix pasto in
        my previous patch.

From-SVN: r78635

gcc/ChangeLog
gcc/c-typeck.c

index 191a52578d79b23cb1ce00ca0e518b5c3065fd44..44c8564a23e265595f1025f92cabba5bcbe4d938 100644 (file)
@@ -1,4 +1,7 @@
 2004-02-28  Andrew Pinski  <pinskia@physics.uc.edu>
+       
+       * c-typeck.c (tagged_types_tu_compatible_p): Fix pasto in
+       my previous patch.
 
        * config/darwin.h (machopic_finish): Output stub even if the
        symbol is already defined.
index e44453af83295334275318d1fef215a5ac1f9bcf..8ad4400ede1d9ae545c15dddcafcdfba7765fb29 100644 (file)
@@ -711,7 +711,7 @@ tagged_types_tu_compatible_p (tree t1, tree t2, int flags)
         
         for (;tv1 && tv2; tv1 = TREE_CHAIN (tv2), tv2 = TREE_CHAIN (tv2))
           {
-            if (TREE_PURPOSE (tv1) != TREE_PURPOSE (tv1))
+            if (TREE_PURPOSE (tv1) != TREE_PURPOSE (tv2))
               break;
             if (simple_cst_equal (TREE_VALUE (tv1), TREE_VALUE (tv2)) != 1)
               return 0;