mirror of
https://github.com/nzp-team/fteqw.git
synced 2024-11-10 22:51:57 +00:00
I wonder how many more bugs there are left for Blub to find.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@3235 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
a80214290d
commit
3b8c5d74bc
1 changed files with 9 additions and 3 deletions
|
@ -4767,6 +4767,9 @@ QCC_def_t *QCC_PR_Term (void)
|
||||||
case ev_float:
|
case ev_float:
|
||||||
e2 = QCC_PR_Statement (&pr_opcodes[OP_SUB_F], QCC_MakeFloatDef(0), e, NULL);
|
e2 = QCC_PR_Statement (&pr_opcodes[OP_SUB_F], QCC_MakeFloatDef(0), e, NULL);
|
||||||
break;
|
break;
|
||||||
|
case ev_vector:
|
||||||
|
e2 = QCC_PR_Statement (&pr_opcodes[OP_SUB_V], QCC_MakeVectorDef(0, 0, 0), e, NULL);
|
||||||
|
break;
|
||||||
case ev_integer:
|
case ev_integer:
|
||||||
e2 = QCC_PR_Statement (&pr_opcodes[OP_SUB_I], QCC_MakeIntDef(0), e, NULL);
|
e2 = QCC_PR_Statement (&pr_opcodes[OP_SUB_I], QCC_MakeIntDef(0), e, NULL);
|
||||||
break;
|
break;
|
||||||
|
@ -4784,10 +4787,13 @@ QCC_def_t *QCC_PR_Term (void)
|
||||||
switch(e->type->type)
|
switch(e->type->type)
|
||||||
{
|
{
|
||||||
case ev_float:
|
case ev_float:
|
||||||
e2 = QCC_PR_Statement (&pr_opcodes[OP_ADD_F], QCC_MakeFloatDef(0), e, NULL);
|
e2 = QCC_MakeFloatDef(0);
|
||||||
|
break;
|
||||||
|
case ev_vector:
|
||||||
|
e2 = QCC_MakeVectorDef(0, 0, 0);
|
||||||
break;
|
break;
|
||||||
case ev_integer:
|
case ev_integer:
|
||||||
e2 = QCC_PR_Statement (&pr_opcodes[OP_ADD_I], QCC_MakeIntDef(0), e, NULL);
|
e2 = QCC_MakeIntDef(0);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
QCC_PR_ParseError (ERR_BADNOTTYPE, "type mismatch for +");
|
QCC_PR_ParseError (ERR_BADNOTTYPE, "type mismatch for +");
|
||||||
|
@ -4934,7 +4940,7 @@ QCC_def_t *QCC_PR_Expression (int priority, int exprflags)
|
||||||
if (QCC_PR_CheckToken ("(") )
|
if (QCC_PR_CheckToken ("(") )
|
||||||
{
|
{
|
||||||
qcc_usefulstatement=true;
|
qcc_usefulstatement=true;
|
||||||
return QCC_PR_ParseFunctionCall (e);
|
e = QCC_PR_ParseFunctionCall (e);
|
||||||
}
|
}
|
||||||
if (QCC_PR_CheckToken ("?"))
|
if (QCC_PR_CheckToken ("?"))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue