linux-sparse.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Al Viro <viro@ftp.linux.org.uk>
To: linux-sparse@vger.kernel.org
Subject: [PATCH 3/18] Fix braino in which_kind()
Date: Mon, 09 Mar 2009 07:10:38 +0000	[thread overview]
Message-ID: <E1LgZdG-0000rw-0M@ZenIV.linux.org.uk> (raw)


Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
---
 parse.c |    2 +-
 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 */
-- 
1.5.6.5



                 reply	other threads:[~2009-03-09  7:10 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=E1LgZdG-0000rw-0M@ZenIV.linux.org.uk \
    --to=viro@ftp.linux.org.uk \
    --cc=linux-sparse@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).