aboutsummaryrefslogtreecommitdiff
path: root/src/checker.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2024-04-26 15:09:08 +0100
committergingerBill <bill@gingerbill.org>2024-04-26 15:09:08 +0100
commit4bea5dbac1aea38d33b21e2c13297b0fc96c1be9 (patch)
treedbeddd14f9c87ff199a9239a973e8834ea4239f1 /src/checker.cpp
parent2b26384b89ed2b29f9d7db13f73c52029a2a2341 (diff)
Correct map usage
Diffstat (limited to 'src/checker.cpp')
-rw-r--r--src/checker.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/checker.cpp b/src/checker.cpp
index 64fca0312..ee0ee5713 100644
--- a/src/checker.cpp
+++ b/src/checker.cpp
@@ -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;
}