Removed the EXPR_FORCE... ops

git-svn-id: svn://svn.cc65.org/cc65/trunk@2677 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
cuz
2003-11-23 21:37:11 +00:00
parent efdee34870
commit 53a7c0c7d9
3 changed files with 9 additions and 24 deletions

View File

@@ -357,11 +357,6 @@ long GetExprVal (ExprNode* Expr)
case EXPR_BOOLNOT:
return !GetExprVal (Expr->Left);
case EXPR_FORCEWORD:
case EXPR_FORCEFAR:
/* These two have no effect on the expression result */
return GetExprVal (Expr->Left);
case EXPR_BYTE0:
return GetExprVal (Expr->Left) & 0xFF;
@@ -380,7 +375,7 @@ long GetExprVal (ExprNode* Expr)
case EXPR_WORD1:
return (GetExprVal (Expr->Left) >> 16) & 0xFFFF;
default:
default:
Internal ("Unknown expression Op type: %u", Expr->Op);
/* NOTREACHED */
return 0;