pass NIL though ... safely

This commit is contained in:
Bill Currie 2003-08-22 06:04:31 +00:00
parent 303287dc11
commit d20b8bf0c1
1 changed files with 2 additions and 0 deletions

View File

@ -1931,6 +1931,8 @@ function_expr (expr_t *e1, expr_t *e2)
i + 1, e1->e.def->name); i + 1, e1->e.def->name);
} }
} else { } else {
if (e->type == ex_nil)
convert_nil (e, t = &type_vector); //XXX largest param size
if (e->type == ex_integer && options.warnings.vararg_integer) if (e->type == ex_integer && options.warnings.vararg_integer)
warning (e, "passing integer consant into ... function"); warning (e, "passing integer consant into ... function");
} }