fixuptypes fixed
authorsandeep <sandeep@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Sat, 7 Oct 2000 22:07:44 +0000 (22:07 +0000)
committersandeep <sandeep@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Sat, 7 Oct 2000 22:07:44 +0000 (22:07 +0000)
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@448 4a8a32a2-be11-0410-ad9d-d568d2c75423

src/SDCCsymt.c

index 0bd3032f6bf786d6f7c6c96f36186bd3b6f9c719..7d395978900cb064f70a5cd6106e7fe3f3edc93b 100644 (file)
@@ -1211,7 +1211,11 @@ int checkType ( link *dest, link *src )
            else
                return 0;
     }
-    
+
+    /* if one is a specifier and the other is not */
+    if ((IS_SPEC(src) && !IS_SPEC(dest)) ||
+       (IS_SPEC(dest) && !IS_SPEC(src))) return 0;
+
     /* if one of them is a void then ok */
     if (SPEC_NOUN(dest) == V_VOID    &&
        SPEC_NOUN(src)  != V_VOID    )
@@ -1237,8 +1241,8 @@ int checkType ( link *dest, link *src )
     if (IS_BITFIELD(dest) && IS_BITFIELD(src) &&
        (SPEC_BLEN(dest) != SPEC_BLEN(src) ||
         SPEC_BSTR(dest) != SPEC_BSTR(src)))
-       return -1;
-
+           return -1;
+    
     /* it is a specifier */
     if (SPEC_NOUN(dest) != SPEC_NOUN(src))      {
        if (SPEC_USIGN(dest) == SPEC_USIGN(src) &&