Fix conversion of nil to a real type.

This commit is contained in:
Bill Currie 2011-02-03 21:37:15 +09:00
parent f44a26e268
commit d7853682af

View file

@ -1034,6 +1034,7 @@ convert_nil (expr_t *e, type_t *t)
{
memset (&e->e.value, 0, sizeof (e->e.value));
e->e.value.type = t->type;
e->type = ex_value;
}
int