gingerBill 4 years ago
parent
commit
15bf57e4e1
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/ir.cpp

+ 1 - 1
src/ir.cpp

@@ -3190,7 +3190,7 @@ bool ir_type_requires_mem_zero(Type *t) {
 		} else {
 			i64 packed_sized = 0;
 			for_array(i, t->Struct.fields) {
-				Type *f = t->Struct.fields[i];
+				Entity *f = t->Struct.fields[i];
 				if (f->kind == Entity_Variable) {
 					packed_sized += type_size_of(f->type);
 				}