aboutsummaryrefslogtreecommitdiff
path: root/tccgen.c
diff options
context:
space:
mode:
Diffstat (limited to 'tccgen.c')
-rw-r--r--tccgen.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tccgen.c b/tccgen.c
index 51ac0b1..d75b359 100644
--- a/tccgen.c
+++ b/tccgen.c
@@ -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;