Fixed LimitExprValue() for 64-bit long env.
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user