From bb5ea31d5589093b14f9d4115b25c5c10dd7f754 Mon Sep 17 00:00:00 2001 From: johanknol Date: Sun, 30 Sep 2001 13:39:13 +0000 Subject: [PATCH] fixed bug #466026 git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@1331 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- src/SDCCicode.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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); } -- 2.47.2