Correct parapoly determination of generated internal type of a map

This commit is contained in:
gingerBill
2022-09-22 00:05:11 +01:00
parent 0380601bb4
commit 8c3f01fbfa
7 changed files with 11 additions and 9 deletions
+1 -1
View File
@@ -1130,7 +1130,7 @@ lbValue lb_emit_struct_ev(lbProcedure *p, lbValue s, i32 index) {
case Type_Map:
{
init_map_internal_types(t);
Type *gst = t->Map.generated_struct_type;
Type *gst = t->Map.internal_type;
switch (index) {
case 0: result_type = get_struct_field_type(gst, 0); break;
case 1: result_type = get_struct_field_type(gst, 1); break;