1
0
mirror of https://github.com/cc65/cc65.git synced 2024-11-19 06:31:31 +00:00

Fixed LimitExprValue() for 64-bit long env.

This commit is contained in:
acqn 2022-02-26 23:02:51 +08:00 committed by mrdudz
parent 7e3aaf199a
commit f0242fb7d5

View File

@ -216,8 +216,11 @@ void LimitExprValue (ExprDesc* Expr)
break;
case T_LONG:
Expr->IVal = (int32_t)Expr->IVal;
break;
case T_ULONG:
/* No need to do anything */
Expr->IVal = (uint32_t)Expr->IVal;
break;
case T_SCHAR: