mirror of
https://github.com/cc65/cc65.git
synced 2025-03-01 11:29:27 +00:00
const value should never have default size, use 32bit instead
This commit is contained in:
parent
87d26b68f4
commit
7c96af75c5
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user