mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 15:48:51 +00:00
Remove debug bug
This commit is contained in:
@@ -557,10 +557,6 @@ Entity *scope_lookup_entity(Scope *s, String name) {
|
|||||||
|
|
||||||
Entity *scope_insert_entity(Scope *s, Entity *entity) {
|
Entity *scope_insert_entity(Scope *s, Entity *entity) {
|
||||||
String name = entity->token.string;
|
String name = entity->token.string;
|
||||||
if (str_eq(name, str_lit("output"))) {
|
|
||||||
gb_printf_err("Here! %.*s\n", LIT(name));
|
|
||||||
}
|
|
||||||
|
|
||||||
HashKey key = hash_string(name);
|
HashKey key = hash_string(name);
|
||||||
Entity **found = map_entity_get(&s->elements, key);
|
Entity **found = map_entity_get(&s->elements, key);
|
||||||
|
|
||||||
|
|||||||
+2
-2
@@ -1695,8 +1695,8 @@ i64 *type_set_offsets_of(gbAllocator allocator, Entity **fields, isize field_cou
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
for (isize i = 0; i < field_count; i++) {
|
for (isize i = 0; i < field_count; i++) {
|
||||||
i64 align = max(type_align_of(allocator, fields[i]->type), 1);
|
i64 align = gb_max(type_align_of(allocator, fields[i]->type), 1);
|
||||||
i64 size = max(type_size_of(allocator, fields[i]->type), 0);
|
i64 size = gb_max(type_size_of(allocator, fields[i]->type), 0);
|
||||||
curr_offset = align_formula(curr_offset, align);
|
curr_offset = align_formula(curr_offset, align);
|
||||||
offsets[i] = curr_offset;
|
offsets[i] = curr_offset;
|
||||||
curr_offset += size;
|
curr_offset += size;
|
||||||
|
|||||||
Reference in New Issue
Block a user