mirror of
https://github.com/cc65/cc65.git
synced 2025-01-12 02:30:44 +00:00
Fixed expression type of the result of numeric constant comparison.
This commit is contained in:
parent
ea0c634e12
commit
f2eed38fc8
@ -2793,6 +2793,9 @@ static void hie_compare (const GenDesc* Ops, /* List of generators */
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Get rid of unwanted flags */
|
||||||
|
ED_MakeConstBool (Expr, Expr->IVal);
|
||||||
|
|
||||||
/* If the result is constant, this is suspicious when not in
|
/* If the result is constant, this is suspicious when not in
|
||||||
** preprocessor mode.
|
** preprocessor mode.
|
||||||
*/
|
*/
|
||||||
|
@ -261,7 +261,7 @@ ExprDesc* ED_MakeConstBool (ExprDesc* Expr, long Value)
|
|||||||
{
|
{
|
||||||
Expr->Sym = 0;
|
Expr->Sym = 0;
|
||||||
Expr->Type = type_bool;
|
Expr->Type = type_bool;
|
||||||
Expr->Flags = E_LOC_NONE | E_RTYPE_RVAL | (Expr->Flags & E_HAVE_MARKS);
|
Expr->Flags = E_LOC_NONE | E_RTYPE_RVAL | (Expr->Flags & E_MASK_KEEP_MAKE);
|
||||||
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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user