Correct map usage

This commit is contained in:
gingerBill
2024-04-26 15:09:08 +01:00
parent 2b26384b89
commit 4bea5dbac1
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -2192,7 +2192,7 @@ gb_internal void add_min_dep_type_info(Checker *c, Type *t) {
// IMPORTANT NOTE(bill): this must be copied as `map_set` takes a const ref
// and effectively assigns the `+1` of the value
isize const count = set->count;
if (map_set_if_not_previously_exists(set, ti_index, count)) {
if (map_set_if_not_previously_exists(set, ti_index+1, count)) {
// Type already exists;
return;
}