From b4ef55610696028e8bf2b94797faa825784dad4a Mon Sep 17 00:00:00 2001 From: Christopher Li Date: Wed, 10 Feb 2010 01:32:30 -0800 Subject: Pointer don't inherent the alignment from base type Signed-off-by: Christopher Li --- parse.c | 1 + 1 file changed, 1 insertion(+) diff --git a/parse.c b/parse.c index 66b8112..f81b19f 100644 --- a/parse.c +++ b/parse.c @@ -1698,6 +1698,7 @@ static struct token *pointer(struct token *token, struct decl_state *ctx) ctx->ctype.base_type = ptr; ctx->ctype.as = 0; ctx->ctype.contexts = NULL; + ctx->ctype.alignment = 0; token = handle_qualifiers(token->next, ctx); ctx->ctype.base_type->endpos = token->pos; -- cgit v1.2.3-65-gdbad