1
0
Fork 0
forked from fte/fteqw

I missed a trick. acc.fld.stridx should work properly now.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@4749 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2014-09-09 11:23:41 +00:00
parent b328df6936
commit 389a2ee285

View file

@ -5276,9 +5276,14 @@ static QCC_ref_t *QCC_PR_ParseField(QCC_ref_t *refbuf, QCC_ref_t *lhs)
{
if (acc->indexertype)
{
QCC_PR_Expect("[");
index = QCC_PR_Expression (TOP_PRIORITY, 0);
QCC_PR_Expect("]");
if (QCC_PR_CheckToken(".") || QCC_PR_CheckToken("->"))
index = QCC_MakeStringConst(QCC_PR_ParseName());
else
{
QCC_PR_Expect("[");
index = QCC_PR_Expression (TOP_PRIORITY, 0);
QCC_PR_Expect("]");
}
}
break;
}