mirror of
https://github.com/cc65/cc65.git
synced 2024-12-27 15:29:46 +00:00
Better future-proof bit-masking.
This commit is contained in:
parent
55881e913d
commit
9e82de4607
@ -143,10 +143,10 @@ static void DoConversion (ExprDesc* Expr, const Type* NewType)
|
|||||||
|
|
||||||
/* Do the integer constant <-> absolute address conversion if necessary */
|
/* Do the integer constant <-> absolute address conversion if necessary */
|
||||||
if (IsClassPtr (NewType)) {
|
if (IsClassPtr (NewType)) {
|
||||||
Expr->Flags &= ~E_LOC_NONE;
|
Expr->Flags &= ~E_MASK_LOC;
|
||||||
Expr->Flags |= E_LOC_ABS | E_ADDRESS_OF;
|
Expr->Flags |= E_LOC_ABS | E_ADDRESS_OF;
|
||||||
} else if (IsClassInt (NewType)) {
|
} else if (IsClassInt (NewType)) {
|
||||||
Expr->Flags &= ~(E_LOC_ABS | E_ADDRESS_OF);
|
Expr->Flags &= ~(E_MASK_LOC | E_ADDRESS_OF);
|
||||||
Expr->Flags |= E_LOC_NONE;
|
Expr->Flags |= E_LOC_NONE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user