From: Dale Weiler Date: Fri, 28 Dec 2012 12:50:37 +0000 (+0000) Subject: Fix a very possible bug X-Git-Tag: before-library~452 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=3688dab048f198c3ef37f7a8b2e54cd078622e7b;p=xonotic%2Fgmqcc.git Fix a very possible bug --- 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"