From b8b626ee8185c0b39beb6a5db0381536a24098f7 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Fri, 16 Nov 2012 14:45:11 +0900 Subject: [PATCH] Change the int<->float conversion opcode string. Using "=" was rather confusing, so changing it to "" seems to be a good idea. As the string is used only for selecting opcodes at compile time, only qfcc is affected. --- libs/gamecode/pr_opcode.c | 4 ++-- tools/qfcc/source/statements.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/libs/gamecode/pr_opcode.c b/libs/gamecode/pr_opcode.c index 77b3f6ab4..8206e1e7b 100644 --- a/libs/gamecode/pr_opcode.c +++ b/libs/gamecode/pr_opcode.c @@ -463,12 +463,12 @@ VISIBLE opcode_t pr_opcodes[] = { "%Ga, %sb, %gc", }, - {"=", "conv.if", OP_CONV_IF, false, + {"", "conv.if", OP_CONV_IF, false, ev_integer, ev_invalid, ev_float, PROG_VERSION, "%Ga, %gc", }, - {"=", "conv.fi", OP_CONV_FI, false, + {"", "conv.fi", OP_CONV_FI, false, ev_float, ev_invalid, ev_integer, PROG_VERSION, "%Ga, %gc", diff --git a/tools/qfcc/source/statements.c b/tools/qfcc/source/statements.c index 27536584b..8e3e9e94c 100644 --- a/tools/qfcc/source/statements.c +++ b/tools/qfcc/source/statements.c @@ -816,7 +816,7 @@ expr_cast (sblock_t *sblock, expr_t *e, operand_t **op) operand_t *src = 0; sblock = statement_subexpr (sblock, e->e.expr.e1, &src); *op = temp_operand (e->e.expr.type); - s = new_statement ("=", e); + s = new_statement ("", e); s->opa = src; s->opc = *op; sblock_add_statement (sblock, s);