1
0
mirror of https://github.com/cc65/cc65.git synced 2024-12-27 00:29:31 +00:00

Fixed a bug

git-svn-id: svn://svn.cc65.org/cc65/trunk@3511 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
cuz 2005-05-11 13:54:22 +00:00
parent 945bbe2b50
commit b01c0cf2b7

View File

@ -819,7 +819,8 @@ static void ArrayRef (ExprDesc* Expr)
* address. This is true for most arrays and will produce a lot better
* 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 */
GetCodePos (&Mark1);