aboutsummaryrefslogtreecommitdiff
path: root/src/types.cpp
diff options
context:
space:
mode:
authorGinger Bill <bill@gingerbill.org>2017-07-29 13:56:45 +0100
committerGinger Bill <bill@gingerbill.org>2017-07-29 13:56:45 +0100
commitfbd27d7c459bab630af56ba0bf608f9d51109a07 (patch)
treec0364e48896632ab026ffefb8719170e5c64ecc3 /src/types.cpp
parent3546391311d84376a758ee0fcc806e192d6a18ce (diff)
Fix map internal type generation
Diffstat (limited to 'src/types.cpp')
-rw-r--r--src/types.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/types.cpp b/src/types.cpp
index abe66c7f7..4d0c368fa 100644
--- a/src/types.cpp
+++ b/src/types.cpp
@@ -390,7 +390,7 @@ i64 type_size_of (gbAllocator allocator, Type *t);
i64 type_align_of (gbAllocator allocator, Type *t);
i64 type_offset_of (gbAllocator allocator, Type *t, i32 index);
gbString type_to_string (Type *type);
-void generate_map_struct_type(gbAllocator a, Type *type);
+void generate_map_internal_types(gbAllocator a, Type *type);
@@ -1827,7 +1827,7 @@ i64 type_align_of_internal(gbAllocator allocator, Type *t, TypePath *path) {
case Type_Map: {
if (t->Map.count == 0) { // Dynamic
// return build_context.word_size;
- generate_map_struct_type(allocator, t);
+ generate_map_internal_types(allocator, t);
return type_align_of_internal(allocator, t->Map.generated_struct_type, path);
}
GB_PANIC("TODO(bill): Fixed map alignment");
@@ -2057,7 +2057,7 @@ i64 type_size_of_internal(gbAllocator allocator, Type *t, TypePath *path) {
if (t->Map.count == 0) { // Dynamic
// i64 da = 3*build_context.word_size + 2*build_context.word_size;
// return 2 * da;
- generate_map_struct_type(allocator, t);
+ generate_map_internal_types(allocator, t);
return type_size_of_internal(allocator, t->Map.generated_struct_type, path);
}
GB_PANIC("TODO(bill): Fixed map size");