aboutsummaryrefslogtreecommitdiff
path: root/src/checker.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2018-05-13 10:09:21 +0100
committergingerBill <bill@gingerbill.org>2018-05-13 10:09:21 +0100
commit61906613b0bccf7b6d542acfbc545213c810c910 (patch)
tree2993ed252b168a6908e9aeda967ee56c77d0a766 /src/checker.cpp
parent3b48fa8e7d87c9a6270cf1e59c67c66c3f3f9410 (diff)
Add `typeid` to `Type_Info` struct
Diffstat (limited to 'src/checker.cpp')
-rw-r--r--src/checker.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/checker.cpp b/src/checker.cpp
index dd2033d0d..c988b8fcd 100644
--- a/src/checker.cpp
+++ b/src/checker.cpp
@@ -1551,9 +1551,9 @@ void init_preload(Checker *c) {
t_type_info_enum_value = type_info_enum_value->type;
t_type_info_enum_value_ptr = alloc_type_pointer(t_type_info_enum_value);
- GB_ASSERT(tis->fields.count == 3);
+ GB_ASSERT(tis->fields.count == 4);
- Entity *type_info_variant = tis->fields[2];
+ Entity *type_info_variant = tis->fields[3];
Type *tiv_type = type_info_variant->type;
GB_ASSERT(is_type_union(tiv_type));