mirror of
https://github.com/cc65/cc65.git
synced 2024-12-22 12:30:41 +00:00
Fixed a bug in character literal handling
git-svn-id: svn://svn.cc65.org/cc65/trunk@2029 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
parent
86f78af374
commit
8b3ab210be
@ -1105,9 +1105,10 @@ static int arrayref (int k, ExprDesc* lval)
|
||||
RemoveCode (Mark1);
|
||||
|
||||
/* Handle constant base array on stack. Be sure NOT to
|
||||
* handle pointers the same way, this won't work.
|
||||
* handle pointers the same way, and check for character literals
|
||||
* (both won't work).
|
||||
*/
|
||||
if (IsTypeArray (tptr1) &&
|
||||
if (IsTypeArray (tptr1) && lval->Flags != (E_MCONST | E_TLIT) &&
|
||||
((lval->Flags & ~E_MCTYPE) == E_MCONST ||
|
||||
(lval->Flags & ~E_MCTYPE) == E_MLOCAL ||
|
||||
(lval->Flags & E_MGLOBAL) != 0 ||
|
||||
|
Loading…
Reference in New Issue
Block a user