aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAl Viro <viro@ftp.linux.org.uk>2009-03-09 07:10:38 +0000
committerChristopher Li <sparse@chrisli.org>2009-07-17 23:06:23 +0000
commite54eee71652916f89c188edec87e1e05b8729830 (patch)
tree4ba11faf210fd1309a069884f90f1563547278a4
parentDon't mess with passing symbol to declarator/direct_declarator (diff)
downloadsparse-e54eee71652916f89c188edec87e1e05b8729830.tar.gz
sparse-e54eee71652916f89c188edec87e1e05b8729830.tar.bz2
sparse-e54eee71652916f89c188edec87e1e05b8729830.zip
Fix braino in which_kind()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: Christopher Li <sparse@chrisli.org>
-rw-r--r--parse.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/parse.c b/parse.c
index 74a8103..08de424 100644
--- a/parse.c
+++ b/parse.c
@@ -1260,7 +1260,7 @@ static enum kind which_kind(struct token *token, struct token **p,
}
if (token_type(next) != TOKEN_SPECIAL)
- return dont_nest ? Bad_Nested : Bad_Func;
+ return !dont_nest ? Bad_Nested : Bad_Func;
if (next->special == ')') {
/* don't complain about those */