Improved the warning output from implicit casts.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2397 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Mark Olsen 2006-09-28 14:55:05 +00:00
parent af6b5bdc77
commit 59d86d9c58

View file

@ -1285,7 +1285,7 @@ QCC_def_t *QCC_PR_Statement ( QCC_opcode_t *op, QCC_def_t *var_a, QCC_def_t *var
if (var_a->type->type == ev_entity && var_b->type->type == ev_entity)
if (var_a->type != var_b->type)
if (strcmp(var_a->type->name, var_b->type->name))
QCC_PR_ParseWarning(0, "Inexplict cast");
QCC_PR_ParseWarning(0, "Implicit cast from '%s' to '%s'", var_a->type->name, var_b->type->name);
}
//maths operators