diff options
| author | gingerBill <bill@gingerbill.org> | 2024-04-26 15:09:08 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2024-04-26 15:09:08 +0100 |
| commit | 4bea5dbac1aea38d33b21e2c13297b0fc96c1be9 (patch) | |
| tree | dbeddd14f9c87ff199a9239a973e8834ea4239f1 /src/checker.cpp | |
| parent | 2b26384b89ed2b29f9d7db13f73c52029a2a2341 (diff) | |
Correct map usage
Diffstat (limited to 'src/checker.cpp')
| -rw-r--r-- | src/checker.cpp | 2 |
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; } |