git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@2373
4a8a32a2-be11-0410-ad9d-
d568d2c75423
+2003-03-11 <johan@balder>
+
+ * src/SDCCsymt.c (compareType): a (void *) can be assigned to any pointer
+
2003-03-11 Bernhard Held <bernhard@bernhardheld.de>
* src/SDCCloop.c (mergeRegions): an evil beast is dead
}
return compareType (dest->next, src->next);
}
+ if (IS_PTR (dest) && IS_GENPTR (src) && IS_VOID(src->next)) {
+ return 1;
+ }
if (IS_PTR (src) && IS_GENPTR (dest))
return -1;
if (IS_PTR (dest) && IS_ARRAY (src)) {
int res=compareType (dest, val->type);
Safe_free(val->type);
Safe_free(val);
- //return res ? -1 : 0;
return res;
}
if (IS_PTR (dest) && IS_FUNC (dest->next) && IS_FUNC (src))