diff options
author | Andrew Chambers <andrewchambers@fastmail.com> | 2019-02-21 23:36:22 +1300 |
---|---|---|
committer | Michael Forney <mforney@mforney.org> | 2019-02-21 12:15:56 -0800 |
commit | 1abf2329fe59afa7490a8c5e5a90ef74fbaab8cd (patch) | |
tree | 8bca5bb11d4723a570aff5e3a1412a3921b44e89 /decl.c | |
parent | ce9b800fb06ef33ad9bec59f3238e02599b6a71d (diff) |
Always expect at least one struct decl.
Diffstat (limited to 'decl.c')
-rw-r--r-- | decl.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -207,8 +207,8 @@ tagspec(struct scope *s) case TYPESTRUCT: case TYPEUNION: end = &t->structunion.members; - while (tok.kind != TRBRACE) - structdecl(s, t, &end); + do structdecl(s, t, &end); + while (tok.kind != TRBRACE); next(); t->size = ALIGNUP(t->size, t->align); t->incomplete = false; |