Check whether structure fields have a type

master
Thomas Preud'homme 2013-01-31 12:32:31 +01:00
parent 505329b5b3
commit 981eb84d8a
1 changed files with 2 additions and 1 deletions

View File

@ -2764,7 +2764,8 @@ static void struct_decl(CType *type, int u)
bit_pos = 0;
offset = 0;
while (tok != '}') {
parse_btype(&btype, &ad);
if (parse_btype(&btype, &ad))
expect("type");
while (1) {
bit_size = -1;
v = 0;