check for uninitialized variables used in function args

This commit is contained in:
Bill Currie 2002-08-29 03:06:00 +00:00
parent 85465efb1d
commit 5da6fbe59c

View file

@ -1648,7 +1648,8 @@ function_expr (expr_t *e1, expr_t *e2)
}
for (i = arg_count - 1, e = e2; i >= 0; i--, e = e->next) {
type_t *t = get_type (e);
check_initialized (e);
if (ftype->parm_types[i] == &type_float && e->type == ex_integer) {
e->type = ex_float;
e->e.float_val = e->e.integer_val;