mirror of
https://github.com/cc65/cc65.git
synced 2025-08-09 13:25:06 +00:00
Fix a problem with error handling: The E_HAVE_MARKS flag must not be removed
from an expression in case of an error. git-svn-id: svn://svn.cc65.org/cc65/trunk@4482 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
@@ -172,7 +172,7 @@ ExprDesc* ED_MakeConstAbs (ExprDesc* Expr, long Value, Type* Type)
|
|||||||
{
|
{
|
||||||
Expr->Sym = 0;
|
Expr->Sym = 0;
|
||||||
Expr->Type = Type;
|
Expr->Type = Type;
|
||||||
Expr->Flags = E_LOC_ABS | E_RTYPE_RVAL;
|
Expr->Flags = E_LOC_ABS | E_RTYPE_RVAL | (Expr->Flags & E_HAVE_MARKS);
|
||||||
Expr->Name = 0;
|
Expr->Name = 0;
|
||||||
Expr->IVal = Value;
|
Expr->IVal = Value;
|
||||||
Expr->FVal = FP_D_Make (0.0);
|
Expr->FVal = FP_D_Make (0.0);
|
||||||
@@ -186,7 +186,7 @@ ExprDesc* ED_MakeConstAbsInt (ExprDesc* Expr, long Value)
|
|||||||
{
|
{
|
||||||
Expr->Sym = 0;
|
Expr->Sym = 0;
|
||||||
Expr->Type = type_int;
|
Expr->Type = type_int;
|
||||||
Expr->Flags = E_LOC_ABS | E_RTYPE_RVAL;
|
Expr->Flags = E_LOC_ABS | E_RTYPE_RVAL | (Expr->Flags & E_HAVE_MARKS);
|
||||||
Expr->Name = 0;
|
Expr->Name = 0;
|
||||||
Expr->IVal = Value;
|
Expr->IVal = Value;
|
||||||
Expr->FVal = FP_D_Make (0.0);
|
Expr->FVal = FP_D_Make (0.0);
|
||||||
|
Reference in New Issue
Block a user