|
@@ -23,10 +23,10 @@ gb_internal isize cg_type_info_index(CheckerInfo *info, Type *type, bool err_on_
|
|
auto *set = &info->minimum_dependency_type_info_set;
|
|
auto *set = &info->minimum_dependency_type_info_set;
|
|
isize index = type_info_index(info, type, err_on_not_found);
|
|
isize index = type_info_index(info, type, err_on_not_found);
|
|
if (index >= 0) {
|
|
if (index >= 0) {
|
|
- auto *found = map_get(set, index);
|
|
|
|
|
|
+ auto *found = map_get(set, index+1);
|
|
if (found) {
|
|
if (found) {
|
|
GB_ASSERT(*found >= 0);
|
|
GB_ASSERT(*found >= 0);
|
|
- return *found + 1;
|
|
|
|
|
|
+ return *found;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if (err_on_not_found) {
|
|
if (err_on_not_found) {
|