diff options
author | Christopher Li <chrisl@heli.(none)> | 2010-02-10 01:32:30 -0800 |
---|---|---|
committer | Christopher <sparse@chrisli.org> | 2010-03-28 17:51:36 -0700 |
commit | b4ef55610696028e8bf2b94797faa825784dad4a (patch) | |
tree | 19d4939df742dc0c9b9b89cc1982b6a4cfe80f0c | |
parent | possible fix to cgcc issue in sparse 0.4.2: (diff) | |
download | sparse-b4ef55610696028e8bf2b94797faa825784dad4a.tar.gz sparse-b4ef55610696028e8bf2b94797faa825784dad4a.tar.bz2 sparse-b4ef55610696028e8bf2b94797faa825784dad4a.zip |
Pointer don't inherent the alignment from base type
Signed-off-by: Christopher Li <sparse@chrisli.org>
-rw-r--r-- | parse.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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; |