Fix variable size when defining extern struct with anon struct

This commit is contained in:
drmortalwombat 2024-03-07 20:42:21 +01:00
parent 0c43952e37
commit 45246a2f2d

View File

@ -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;