1
0
mirror of https://github.com/cc65/cc65.git synced 2024-11-19 06:31:31 +00:00

Fixed flexible array struct members.

git-svn-id: svn://svn.cc65.org/cc65/trunk@4131 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
uz 2009-09-08 07:55:44 +00:00
parent 9f7ca16001
commit 331803126f

View File

@ -738,7 +738,9 @@ static SymEntry* ParseStructDecl (const char* Name)
}
} else {
AddLocalSym (Decl.Ident, Decl.Type, SC_STRUCTFIELD, StructSize);
StructSize += CheckedSizeOf (Decl.Type);
if (!FlexibleMember) {
StructSize += CheckedSizeOf (Decl.Type);
}
}
NextMember: if (CurTok.Tok != TOK_COMMA) {