From 6236971e48103bee5fc22afa850865c9acbdc3c2 Mon Sep 17 00:00:00 2001 From: Spoike Date: Tue, 6 Sep 2011 20:59:08 +0000 Subject: [PATCH] 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 --- engine/qclib/qcc_pr_comp.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/engine/qclib/qcc_pr_comp.c b/engine/qclib/qcc_pr_comp.c index ff76d22a9..53d0bb8c8 100644 --- a/engine/qclib/qcc_pr_comp.c +++ b/engine/qclib/qcc_pr_comp.c @@ -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 switch (op - pr_opcodes) { - case OP_STORE_FI: case OP_CONV_FTOI: optres_constantarithmatic++; return QCC_MakeIntDef(G_FLOAT(var_a->ofs)); - case OP_STORE_IF: case OP_CONV_ITOF: optres_constantarithmatic++; 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); break; 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; case ev_string: d = QCC_PR_Statement(&pr_opcodes[OP_LOADA_S], d, QCC_SupplyConversion(idx, ev_integer, true), NULL);