From: johanknol Date: Sun, 30 Sep 2001 13:39:13 +0000 (+0000) Subject: fixed bug #466026 X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=bb5ea31d5589093b14f9d4115b25c5c10dd7f754;p=fw%2Fsdcc fixed bug #466026 git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@1331 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- diff --git a/src/SDCCicode.c b/src/SDCCicode.c index 0c512bbf..e8d37a83 100644 --- a/src/SDCCicode.c +++ b/src/SDCCicode.c @@ -3293,8 +3293,9 @@ ast2iCode (ast * tree,int lvl) case '[': /* array operation */ { - sym_link *ltype = operandType (left); - left = geniCodeRValue (left, IS_PTR (ltype->next) ? TRUE : FALSE); + //sym_link *ltype = operandType (left); + //left = geniCodeRValue (left, IS_PTR (ltype->next) ? TRUE : FALSE); + left = geniCodeRValue (left, FALSE); right = geniCodeRValue (right, TRUE); }