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:
parent
9f7ca16001
commit
331803126f
1 changed files with 5 additions and 3 deletions
|
@ -738,8 +738,10 @@ static SymEntry* ParseStructDecl (const char* Name)
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
AddLocalSym (Decl.Ident, Decl.Type, SC_STRUCTFIELD, StructSize);
|
AddLocalSym (Decl.Ident, Decl.Type, SC_STRUCTFIELD, StructSize);
|
||||||
|
if (!FlexibleMember) {
|
||||||
StructSize += CheckedSizeOf (Decl.Type);
|
StructSize += CheckedSizeOf (Decl.Type);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
NextMember: if (CurTok.Tok != TOK_COMMA) {
|
NextMember: if (CurTok.Tok != TOK_COMMA) {
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Add table
Reference in a new issue