aboutsummaryrefslogtreecommitdiff
path: root/sys/cmd/cc/ast.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/cmd/cc/ast.c')
-rw-r--r--sys/cmd/cc/ast.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/cmd/cc/ast.c b/sys/cmd/cc/ast.c
index 6a3ed9f..14eddb9 100644
--- a/sys/cmd/cc/ast.c
+++ b/sys/cmd/cc/ast.c
@@ -1689,6 +1689,9 @@ spec(Parser *p, Lexer *lx, uint64 *spec)
}
if (name)
declaretag(p, tag, name);
+
+ /* NOTE: This offset is needed to correctly obtain Tstruct */
+ n++;
break;
default: