mirror of
https://github.com/nzp-team/fteqw.git
synced 2024-11-10 22:51:57 +00:00
Fix a couple of recent bugs in features that noone else uses.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@3900 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
788cce8b36
commit
6236971e48
1 changed files with 1 additions and 3 deletions
|
@ -1760,11 +1760,9 @@ QCC_def_t *QCC_PR_Statement ( QCC_opcode_t *op, QCC_def_t *var_a, QCC_def_t *var
|
||||||
//a is const, b is not
|
//a is const, b is not
|
||||||
switch (op - pr_opcodes)
|
switch (op - pr_opcodes)
|
||||||
{
|
{
|
||||||
case OP_STORE_FI:
|
|
||||||
case OP_CONV_FTOI:
|
case OP_CONV_FTOI:
|
||||||
optres_constantarithmatic++;
|
optres_constantarithmatic++;
|
||||||
return QCC_MakeIntDef(G_FLOAT(var_a->ofs));
|
return QCC_MakeIntDef(G_FLOAT(var_a->ofs));
|
||||||
case OP_STORE_IF:
|
|
||||||
case OP_CONV_ITOF:
|
case OP_CONV_ITOF:
|
||||||
optres_constantarithmatic++;
|
optres_constantarithmatic++;
|
||||||
return QCC_MakeFloatDef(G_INT(var_a->ofs));
|
return QCC_MakeFloatDef(G_INT(var_a->ofs));
|
||||||
|
@ -4417,7 +4415,7 @@ QCC_def_t *QCC_PR_ParseValue (QCC_type_t *assumeclass, pbool allowarrayassign)
|
||||||
d = QCC_PR_Statement(&pr_opcodes[OP_LOADA_F], d, QCC_SupplyConversion(idx, ev_integer, true), NULL);
|
d = QCC_PR_Statement(&pr_opcodes[OP_LOADA_F], d, QCC_SupplyConversion(idx, ev_integer, true), NULL);
|
||||||
break;
|
break;
|
||||||
case ev_integer:
|
case ev_integer:
|
||||||
d = QCC_PR_Statement(&pr_opcodes[OP_LOADA_F], d, QCC_SupplyConversion(idx, ev_integer, true), NULL);
|
d = QCC_PR_Statement(&pr_opcodes[OP_LOADA_I], d, QCC_SupplyConversion(idx, ev_integer, true), NULL);
|
||||||
break;
|
break;
|
||||||
case ev_string:
|
case ev_string:
|
||||||
d = QCC_PR_Statement(&pr_opcodes[OP_LOADA_S], d, QCC_SupplyConversion(idx, ev_integer, true), NULL);
|
d = QCC_PR_Statement(&pr_opcodes[OP_LOADA_S], d, QCC_SupplyConversion(idx, ev_integer, true), NULL);
|
||||||
|
|
Loading…
Reference in a new issue