X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=src%2FSDCCsymt.c;h=95228673de2130475328ddd33c044ce59e380624;hb=51eefdbe8b7ec82630a97151845a8eae2325c899;hp=d422daf5061e3c6af11810f6a3afb57349f7ad17;hpb=2afcba84a2dd97e26c2af22a7219c892722f7005;p=fw%2Fsdcc diff --git a/src/SDCCsymt.c b/src/SDCCsymt.c index d422daf5..95228673 100644 --- a/src/SDCCsymt.c +++ b/src/SDCCsymt.c @@ -2050,7 +2050,7 @@ comparePtrType (sym_link * dest, sym_link * src, bool bMustCast) int res; if (IS_VOID (src->next) && IS_VOID (dest->next)) - return 1; + return bMustCast ? -1 : 1; if ((IS_VOID (src->next) && !IS_VOID (dest->next)) || (!IS_VOID (src->next) && IS_VOID (dest->next)) ) return -1;