Skip to contentSkip to conversation

Fix braino in which_kind()

PATCH New Al Viro 1 participant 1 message Mar 9, 2009 Sparse checker

lore
Share & tools
lore

Al Viro

author
#0 lore raw

PATCH 3/18 Fix braino in which_kind()

---
 parse.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
parse.c +1 -1
index 74a8103..08de424 100644
@@ -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 */
Signature · 1 line
1.5.6.5