diff options
| author | Ginger Bill <bill@gingerbill.org> | 2017-05-03 11:01:17 +0100 |
|---|---|---|
| committer | Ginger Bill <bill@gingerbill.org> | 2017-05-03 11:01:17 +0100 |
| commit | 3b25f924cbb56882e77daccf229258509022d3be (patch) | |
| tree | 1246bb357cc0c4a3eb23ec3964c4a56f718dd634 /src/types.c | |
| parent | cc6282a6e3463dd2b0192789fbd373a6d8f59a3d (diff) | |
Remove debug bug
Diffstat (limited to 'src/types.c')
| -rw-r--r-- | src/types.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/types.c b/src/types.c index 711a74456..82012258e 100644 --- a/src/types.c +++ b/src/types.c @@ -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; |