Some minor mods in mixed mode checking

This commit is contained in:
ceriel
1991-03-27 12:46:37 +00:00
parent 0159b2b79d
commit b6fefd8219
2 changed files with 3 additions and 3 deletions

View File

@@ -409,7 +409,7 @@ global_redecl(idf, new_sc, tp)
register struct def *def = idf->id_def;
while (def->df_level != L_GLOBAL) def = def->next;
if (!equal_type(tp, def->df_type, 0, 0)) {
if (!equal_type(tp, def->df_type, 0, 1)) {
error("redeclaration of %s with different type", idf->id_text);
return;
} else update_proto(tp, def->df_type);