Fix global maps and initialize the preload types before

This commit is contained in:
Ginger Bill
2017-02-07 18:13:37 +00:00
parent 219ca0ac46
commit 454d0b5cf5
5 changed files with 27 additions and 13 deletions
+8
View File
@@ -923,6 +923,14 @@ bool are_types_identical(Type *x, Type *y) {
are_types_identical(x->Proc.results, y->Proc.results);
}
break;
case Type_Map:
if (y->kind == Type_Map) {
return x->Map.count == y->Map.count &&
are_types_identical(x->Map.key, y->Map.key) &&
are_types_identical(x->Map.value, y->Map.value);
}
break;
}