Fixed the comma operator to function correctly.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2513 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
70b55a446c
commit
8c987f6bf9
1 changed files with 7 additions and 5 deletions
|
@ -4239,11 +4239,6 @@ QCC_def_t *QCC_PR_Expression (int priority, pbool allowcomma)
|
||||||
elsej->a = &statements[numstatements] - elsej;
|
elsej->a = &statements[numstatements] - elsej;
|
||||||
return e2;
|
return e2;
|
||||||
}
|
}
|
||||||
if (allowcomma && QCC_PR_CheckToken (","))
|
|
||||||
{
|
|
||||||
QCC_FreeTemp(e);
|
|
||||||
return QCC_PR_Expression(TOP_PRIORITY, true);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
opnum=0;
|
opnum=0;
|
||||||
|
@ -4601,6 +4596,13 @@ QCC_def_t *QCC_PR_Expression (int priority, pbool allowcomma)
|
||||||
}
|
}
|
||||||
if (e == NULL)
|
if (e == NULL)
|
||||||
QCC_PR_ParseError(ERR_INTERNAL, "e == null");
|
QCC_PR_ParseError(ERR_INTERNAL, "e == null");
|
||||||
|
|
||||||
|
if (allowcomma && priority == TOP_PRIORITY && QCC_PR_CheckToken (","))
|
||||||
|
{
|
||||||
|
QCC_FreeTemp(e);
|
||||||
|
return QCC_PR_Expression(TOP_PRIORITY, true);
|
||||||
|
}
|
||||||
|
|
||||||
return e;
|
return e;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue