From: MaartenBrock Date: Thu, 20 Dec 2007 13:20:53 +0000 (+0000) Subject: * src/SDCCsymt.c (computeType): fixed bug, thanks Fan Weiguang X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=78c02d2e99f228a56cadd7bb1e4683535d933292;p=fw%2Fsdcc * src/SDCCsymt.c (computeType): fixed bug, thanks Fan Weiguang git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4980 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- diff --git a/ChangeLog b/ChangeLog index 5f3d8c84..ded25afa 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2007-12-20 Maarten Brock + + * src/SDCCsymt.c (computeType): fixed bug, thanks Fan Weiguang + 2007-12-16 Borut Razem * device/include/pic16/stdbool.h: removed, since already exists in diff --git a/src/SDCCsymt.c b/src/SDCCsymt.c index 9257c4d2..75568357 100644 --- a/src/SDCCsymt.c +++ b/src/SDCCsymt.c @@ -1869,7 +1869,7 @@ computeType (sym_link * type1, sym_link * type2, /* if both are bitvars choose the larger one */ else if (IS_BITVAR (etype1) && IS_BITVAR (etype2)) rType = SPEC_BLEN (etype1) >= SPEC_BLEN (etype2) ? - copyLinkChain (type1) : copyLinkChain (type1); + copyLinkChain (type1) : copyLinkChain (type2); /* if only one of them is a bit variable then the other one prevails */ else if (IS_BITVAR (etype1) && !IS_BITVAR (etype2))