mirror of
https://github.com/cc65/cc65.git
synced 2024-12-28 22:30:12 +00:00
Use the new function MarkedExprWithCheck.
git-svn-id: svn://svn.cc65.org/cc65/trunk@4136 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
parent
0c20177fce
commit
84e288f21c
@ -163,8 +163,6 @@ void Assignment (ExprDesc* Expr)
|
||||
|
||||
CodeMark AndPos;
|
||||
CodeMark PushPos;
|
||||
CodeMark RhsPos;
|
||||
CodeMark RhsEndPos;
|
||||
|
||||
unsigned Mask;
|
||||
unsigned Flags;
|
||||
@ -196,9 +194,7 @@ void Assignment (ExprDesc* Expr)
|
||||
g_push (Flags, 0);
|
||||
|
||||
/* Read the expression on the right side of the '=' */
|
||||
GetCodePos (&RhsPos);
|
||||
hie1 (&Expr2);
|
||||
GetCodePos (&RhsEndPos);
|
||||
MarkedExprWithCheck (hie1, &Expr2);
|
||||
|
||||
/* Do type conversion if necessary. Beware: Do not use char type
|
||||
* here!
|
||||
@ -209,7 +205,7 @@ void Assignment (ExprDesc* Expr)
|
||||
/* Beware: Expr2 may contain side effects, so there must not be
|
||||
* code generated for Expr2.
|
||||
*/
|
||||
if (ED_IsConstAbsInt (&Expr2) && CodeRangeIsEmpty (&RhsPos, &RhsEndPos)) {
|
||||
if (ED_IsConstAbsInt (&Expr2) && ED_CodeRangeIsEmpty (&Expr2)) {
|
||||
|
||||
/* Get the value and apply the mask */
|
||||
unsigned Val = (unsigned) (Expr2.IVal & Mask);
|
||||
|
Loading…
Reference in New Issue
Block a user