aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@home.transmeta.com>2003-03-30 22:02:01 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-07 20:59:54 -0700
commitc6555e8346ccaadb00d1fbe1e2ac83c452f4750b (patch)
tree33be2fcc1372be8604b375ff94f2d2e2c7f89b96 /expression.c
parentIntroduce a "struct position", and have the different types refer (diff)
downloadsparse-c6555e8346ccaadb00d1fbe1e2ac83c452f4750b.tar.gz
sparse-c6555e8346ccaadb00d1fbe1e2ac83c452f4750b.tar.bz2
sparse-c6555e8346ccaadb00d1fbe1e2ac83c452f4750b.zip
A structure member is just an identifier, not a random token.
Diffstat (limited to 'expression.c')
-rw-r--r--expression.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/expression.c b/expression.c
index 2062f88..aff176b 100644
--- a/expression.c
+++ b/expression.c
@@ -151,7 +151,7 @@ static struct token *postfix_expression(struct token *token, struct expression *
warn(token->pos, "Expected member name");
break;
}
- deref->member = token;
+ deref->member = token->ident;
token = token->next;
expr = deref;
continue;