mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2025-01-31 12:00:38 +00:00
Fix a very possible bug
This commit is contained in:
parent
a6f51264fd
commit
3688dab048
2 changed files with 1 additions and 2 deletions
2
parser.c
2
parser.c
|
@ -1665,7 +1665,7 @@ static ast_expression* parse_expression_leave(parser_t *parser, bool stopatcomma
|
||||||
const oper_info *olast = NULL;
|
const oper_info *olast = NULL;
|
||||||
size_t o;
|
size_t o;
|
||||||
for (o = 0; o < operator_count; ++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 */
|
/* !(operators[o].flags & OP_SUFFIX) && / * remove this */
|
||||||
!strcmp(parser_tokval(parser), operators[o].op))
|
!strcmp(parser_tokval(parser), operators[o].op))
|
||||||
{
|
{
|
||||||
|
|
|
@ -63,7 +63,6 @@ FLAGS_MAYBE="\
|
||||||
#these don't need to be here to onhibit the warning
|
#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
|
# remove one flag from here at a time while fixing the code so that
|
||||||
FLAGS_TOFIX="\
|
FLAGS_TOFIX="\
|
||||||
-boolcompare \
|
|
||||||
-initallelements \
|
-initallelements \
|
||||||
-castfcnptr \
|
-castfcnptr \
|
||||||
-evalorder"
|
-evalorder"
|
||||||
|
|
Loading…
Reference in a new issue