From: johanknol Date: Tue, 13 Nov 2001 16:34:13 +0000 (+0000) Subject: fixed bug #481053 X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=c36248a778c4d587c8bfb64affa7cf1174f27af1;p=fw%2Fsdcc fixed bug #481053 git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@1581 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- diff --git a/src/ds390/gen.c b/src/ds390/gen.c index 21832cef..ebc99f5c 100644 --- a/src/ds390/gen.c +++ b/src/ds390/gen.c @@ -562,6 +562,10 @@ aopForRemat (symbol * sym) aop->aopu.aop_immd.from_cast_remat = 1; ic = OP_SYMBOL (IC_RIGHT (ic))->rematiCode; ptr_type = DCL_TYPE(from_type); + if (ptr_type == IPOINTER) { + // bug #481053 + ptr_type = POINTER; + } continue ; } else break; diff --git a/src/mcs51/gen.c b/src/mcs51/gen.c index 1324289e..ebd22eb0 100644 --- a/src/mcs51/gen.c +++ b/src/mcs51/gen.c @@ -391,6 +391,10 @@ aopForRemat (symbol * sym) aop->aopu.aop_immd.from_cast_remat = 1; ic = OP_SYMBOL (IC_RIGHT (ic))->rematiCode; ptr_type = DCL_TYPE(from_type); + if (ptr_type == IPOINTER) { + // bug #481053 + ptr_type = POINTER; + } continue ; } else break;