diff --git a/src/ca65/studyexpr.c b/src/ca65/studyexpr.c index 463d00c98..40e9b7aab 100644 --- a/src/ca65/studyexpr.c +++ b/src/ca65/studyexpr.c @@ -241,13 +241,11 @@ static void ED_MergeAddrSizeAND (ExprNode* Expr, ExprDesc* ED, const ExprDesc* R } else if (IsFarRange (Val)) { ConstSize = ADDR_SIZE_FAR; } else { - ConstSize = ADDR_SIZE_DEFAULT; + ConstSize = ADDR_SIZE_LONG; } if (Size == ADDR_SIZE_DEFAULT) { ED->AddrSize = ConstSize; - } else if (ConstSize == ADDR_SIZE_DEFAULT) { - ED->AddrSize = Size; } else { /* use the smaller of the two sizes */ ED->AddrSize = (ConstSize < Size) ? ConstSize : Size;