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:
@@ -163,8 +163,6 @@ void Assignment (ExprDesc* Expr)
|
|||||||
|
|
||||||
CodeMark AndPos;
|
CodeMark AndPos;
|
||||||
CodeMark PushPos;
|
CodeMark PushPos;
|
||||||
CodeMark RhsPos;
|
|
||||||
CodeMark RhsEndPos;
|
|
||||||
|
|
||||||
unsigned Mask;
|
unsigned Mask;
|
||||||
unsigned Flags;
|
unsigned Flags;
|
||||||
@@ -196,9 +194,7 @@ void Assignment (ExprDesc* Expr)
|
|||||||
g_push (Flags, 0);
|
g_push (Flags, 0);
|
||||||
|
|
||||||
/* Read the expression on the right side of the '=' */
|
/* Read the expression on the right side of the '=' */
|
||||||
GetCodePos (&RhsPos);
|
MarkedExprWithCheck (hie1, &Expr2);
|
||||||
hie1 (&Expr2);
|
|
||||||
GetCodePos (&RhsEndPos);
|
|
||||||
|
|
||||||
/* Do type conversion if necessary. Beware: Do not use char type
|
/* Do type conversion if necessary. Beware: Do not use char type
|
||||||
* here!
|
* here!
|
||||||
@@ -209,7 +205,7 @@ void Assignment (ExprDesc* Expr)
|
|||||||
/* Beware: Expr2 may contain side effects, so there must not be
|
/* Beware: Expr2 may contain side effects, so there must not be
|
||||||
* code generated for Expr2.
|
* 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 */
|
/* Get the value and apply the mask */
|
||||||
unsigned Val = (unsigned) (Expr2.IVal & Mask);
|
unsigned Val = (unsigned) (Expr2.IVal & Mask);
|
||||||
|
|||||||
Reference in New Issue
Block a user