diff options
| author | gingerBill <bill@gingerbill.org> | 2018-01-18 13:11:51 +0000 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2018-01-18 13:11:51 +0000 |
| commit | 386f5f596da284e90565b02d7766ebf79fddb8f7 (patch) | |
| tree | 96933323160f1afa272ff626caa07409d2425a12 /src/types.cpp | |
| parent | add53228b2ee93f7374a815ce1c4e5a86b7b9d28 (diff) | |
Change to HeapAlloc et al on Windows
Diffstat (limited to 'src/types.cpp')
| -rw-r--r-- | src/types.cpp | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/types.cpp b/src/types.cpp index d515d9390..34c4870ef 100644 --- a/src/types.cpp +++ b/src/types.cpp @@ -1782,13 +1782,7 @@ void type_path_pop(TypePath *tp) { i64 type_size_of_internal (gbAllocator allocator, Type *t, TypePath *path); i64 type_align_of_internal(gbAllocator allocator, Type *t, TypePath *path); -i64 align_formula(i64 size, i64 align) { - if (align > 0) { - i64 result = size + align-1; - return result - result%align; - } - return size; -} + i64 type_size_of(gbAllocator allocator, Type *t) { if (t == nullptr) { |