Fixed a bug
git-svn-id: svn://svn.cc65.org/cc65/trunk@3511 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
@@ -819,7 +819,8 @@ static void ArrayRef (ExprDesc* Expr)
|
|||||||
* address. This is true for most arrays and will produce a lot better
|
* address. This is true for most arrays and will produce a lot better
|
||||||
* code. Check if this is a const base address.
|
* code. Check if this is a const base address.
|
||||||
*/
|
*/
|
||||||
ConstBaseAddr = (ED_IsLocConst (Expr) || ED_IsLocStack (Expr));
|
ConstBaseAddr = ED_IsRVal (Expr) &&
|
||||||
|
(ED_IsLocConst (Expr) || ED_IsLocStack (Expr));
|
||||||
|
|
||||||
/* If we have a constant base, we delay the address fetch */
|
/* If we have a constant base, we delay the address fetch */
|
||||||
GetCodePos (&Mark1);
|
GetCodePos (&Mark1);
|
||||||
|
|||||||
Reference in New Issue
Block a user