From 977c48d72826200a022409797f575a2a46f5da7b Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Fri, 21 Jan 2011 15:57:53 +0900 Subject: [PATCH] Make operator type overrides clear. --- tools/qfcc/source/statements.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tools/qfcc/source/statements.c b/tools/qfcc/source/statements.c index 3348a4def..a694c4c4c 100644 --- a/tools/qfcc/source/statements.c +++ b/tools/qfcc/source/statements.c @@ -56,9 +56,13 @@ print_operand (operand_t *op) { switch (op->op_type) { case op_symbol: + if (op->type != op->o.symbol->type->type) + printf ("(%s) ", pr_type_name[op->type]); printf ("%s", op->o.symbol->name); break; case op_value: + if (op->type != op->o.value->type) + printf ("(%s) ", pr_type_name[op->type]); switch (op->o.value->type) { case ev_string: printf ("\"%s\"", op->o.value->v.string_val);