move EXPR_NEARADDR to end of enum list to avoid invalidation of existing object binaries?

This commit is contained in:
bbbradsmith
2019-05-01 02:50:16 -04:00
committed by Oliver Schmidt
parent ac2ecb0b2c
commit 10cefdb456
4 changed files with 15 additions and 15 deletions

View File

@@ -436,16 +436,16 @@ long GetExprVal (ExprNode* Expr)
case EXPR_WORD1:
return (GetExprVal (Expr->Left) >> 16) & 0xFFFF;
case EXPR_NEARADDR:
/* Assembler was expected to validate this truncation. */
return GetExprVal (Expr->Left) & 0xFFFF;
case EXPR_FARADDR:
return GetExprVal (Expr->Left) & 0xFFFFFF;
case EXPR_DWORD:
return GetExprVal (Expr->Left) & 0xFFFFFFFF;
case EXPR_NEARADDR:
/* Assembler was expected to validate this truncation. */
return GetExprVal (Expr->Left) & 0xFFFF;
default:
Internal ("Unknown expression Op type: %u", Expr->Op);
/* NOTREACHED */