Fix variable size when defining extern struct with anon struct
This commit is contained in:
parent
0c43952e37
commit
45246a2f2d
|
@ -4514,6 +4514,7 @@ Declaration* Parser::ParseDeclaration(Declaration * pdec, bool variable, bool ex
|
||||||
{
|
{
|
||||||
pdec->mFlags &= ~DTF_EXTERN;
|
pdec->mFlags &= ~DTF_EXTERN;
|
||||||
pdec->mSection = ndec->mSection;
|
pdec->mSection = ndec->mSection;
|
||||||
|
pdec->mSize = ndec->mSize;
|
||||||
}
|
}
|
||||||
|
|
||||||
pdec->mFlags |= ndec->mFlags & DTF_ZEROPAGE;
|
pdec->mFlags |= ndec->mFlags & DTF_ZEROPAGE;
|
||||||
|
|
Loading…
Reference in New Issue