]> git.sur5r.net Git - cc65/commitdiff
Fixed an error in the type comparison code. Function declarators were not
authorcuz <cuz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Sat, 29 Mar 2008 12:17:32 +0000 (12:17 +0000)
committercuz <cuz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Sat, 29 Mar 2008 12:17:32 +0000 (12:17 +0000)
considered equal, if the functions defined different local structs.

git-svn-id: svn://svn.cc65.org/cc65/trunk@3822 b7a2c559-68d2-44c3-8de9-860c34a00d81

src/cc65/typecmp.c

index 68c88d0167ccb961c35f98f07710abba90a3edec..1ff49e159702655f0dbf82781bdbea8379330d26 100644 (file)
@@ -258,9 +258,8 @@ static void DoCompare (const Type* lhs, const Type* rhs, typecmp_t* Result)
                            }
 
                            /* Compare the parameter lists */
-                           if (EqualFuncParams (F1->SymTab, F2->SymTab) == 0 ||
-                               EqualSymTables (F1->TagTab, F2->TagTab) == 0) {
-                               /* One of the tables is not identical */
+                           if (EqualFuncParams (F1->SymTab, F2->SymTab) == 0) {
+                               /* Parameter list is not identical */
                        SetResult (Result, TC_INCOMPATIBLE);
                                return;
                            }