mirror of
https://github.com/cc65/cc65.git
synced 2025-08-10 20:25:20 +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:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user