From 3688dab048f198c3ef37f7a8b2e54cd078622e7b Mon Sep 17 00:00:00 2001 From: Dale Weiler Date: Fri, 28 Dec 2012 12:50:37 +0000 Subject: [PATCH] Fix a very possible bug --- parser.c | 2 +- splint.sh | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/parser.c b/parser.c index cfb14d3..f53167a 100644 --- a/parser.c +++ b/parser.c @@ -1665,7 +1665,7 @@ static ast_expression* parse_expression_leave(parser_t *parser, bool stopatcomma const oper_info *olast = NULL; size_t o; for (o = 0; o < operator_count; ++o) { - if ((!(operators[o].flags & OP_PREFIX) == wantop) && + if (((!(operators[o].flags & OP_PREFIX) == !!wantop)) && /* !(operators[o].flags & OP_SUFFIX) && / * remove this */ !strcmp(parser_tokval(parser), operators[o].op)) { diff --git a/splint.sh b/splint.sh index ae688ee..e51b007 100755 --- a/splint.sh +++ b/splint.sh @@ -63,7 +63,6 @@ FLAGS_MAYBE="\ #these don't need to be here to onhibit the warning # remove one flag from here at a time while fixing the code so that FLAGS_TOFIX="\ - -boolcompare \ -initallelements \ -castfcnptr \ -evalorder" -- 2.39.2