Remove debug bug

This commit is contained in:
Ginger Bill
2017-05-03 11:01:17 +01:00
parent cc6282a6e3
commit 3b25f924cb
2 changed files with 2 additions and 6 deletions
+2 -2
View File
@@ -1695,8 +1695,8 @@ i64 *type_set_offsets_of(gbAllocator allocator, Entity **fields, isize field_cou
}
} else {
for (isize i = 0; i < field_count; i++) {
i64 align = max(type_align_of(allocator, fields[i]->type), 1);
i64 size = max(type_size_of(allocator, fields[i]->type), 0);
i64 align = gb_max(type_align_of(allocator, fields[i]->type), 1);
i64 size = gb_max(type_size_of(allocator, fields[i]->type), 0);
curr_offset = align_formula(curr_offset, align);
offsets[i] = curr_offset;
curr_offset += size;