mirror of
https://github.com/cc65/cc65.git
synced 2025-01-12 17:30:50 +00:00
Changed solution for r4329 so that it uses less memory.
git-svn-id: svn://svn.cc65.org/cc65/trunk@4331 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
parent
c69e2d9f0f
commit
7992bfb74a
@ -1107,7 +1107,7 @@ static void StructRef (ExprDesc* Expr)
|
||||
|
||||
/* The type is the type of the field plus any qualifiers from the struct */
|
||||
Q = GetQualifier (Expr->Type);
|
||||
if (Q == T_QUAL_NONE) {
|
||||
if (GetQualifier (Field->Type) == (GetQualifier (Field->Type) | Q)) {
|
||||
Expr->Type = Field->Type;
|
||||
} else {
|
||||
Expr->Type = TypeDup (Field->Type);
|
||||
|
Loading…
x
Reference in New Issue
Block a user