Fix a very possible bug

This commit is contained in:
Dale Weiler 2012-12-28 12:50:37 +00:00
parent a6f51264fd
commit 3688dab048
2 changed files with 1 additions and 2 deletions

View file

@ -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))
{

View file

@ -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"