unknown-sized locals retain their type

This commit is contained in:
erikb 1986-08-26 10:30:39 +00:00
parent 901d1b3af8
commit e1c67b1fba

View file

@ -335,7 +335,7 @@ declare_idf(ds, dc, lvl)
if (type->tp_size == (arith)-1) { if (type->tp_size == (arith)-1) {
error("size of local %s unknown", error("size of local %s unknown",
idf->id_text); idf->id_text);
type = idf->id_def->df_type = int_type; /** type = idf->id_def->df_type = int_type; **/
} }
idf->id_def->df_register = idf->id_def->df_register =
(sc == REGISTER) (sc == REGISTER)