mirror of
https://github.com/cc65/cc65.git
synced 2025-03-02 18:30:09 +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)) {
|
} else if (IsFarRange (Val)) {
|
||||||
ConstSize = ADDR_SIZE_FAR;
|
ConstSize = ADDR_SIZE_FAR;
|
||||||
} else {
|
} else {
|
||||||
ConstSize = ADDR_SIZE_DEFAULT;
|
ConstSize = ADDR_SIZE_LONG;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (Size == ADDR_SIZE_DEFAULT) {
|
if (Size == ADDR_SIZE_DEFAULT) {
|
||||||
ED->AddrSize = ConstSize;
|
ED->AddrSize = ConstSize;
|
||||||
} else if (ConstSize == ADDR_SIZE_DEFAULT) {
|
|
||||||
ED->AddrSize = Size;
|
|
||||||
} else {
|
} else {
|
||||||
/* use the smaller of the two sizes */
|
/* use the smaller of the two sizes */
|
||||||
ED->AddrSize = (ConstSize < Size) ? ConstSize : Size;
|
ED->AddrSize = (ConstSize < Size) ? ConstSize : Size;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user