aboutsummaryrefslogtreecommitdiff
path: root/src/checker.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2025-02-20 13:23:23 +0000
committergingerBill <bill@gingerbill.org>2025-02-20 13:23:23 +0000
commit1d348318f216d28b8140c0f8dadf3a9607a52a9b (patch)
tree3a4ce6f0265c5d427c612e527681473edd4893fa /src/checker.cpp
parent0ab323012e4fd0303a7e41587a5919c9be028561 (diff)
Use `PtrMap` temporarily
Diffstat (limited to 'src/checker.cpp')
-rw-r--r--src/checker.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/checker.cpp b/src/checker.cpp
index f1f1b2556..678126094 100644
--- a/src/checker.cpp
+++ b/src/checker.cpp
@@ -1651,7 +1651,7 @@ gb_internal isize type_info_index(CheckerInfo *info, TypeInfoPair pair, bool err
mutex_lock(&info->minimum_dependency_type_info_mutex);
isize entry_index = -1;
- uintptr hash = cast(uintptr)pair.hash;
+ u64 hash = pair.hash;
isize *found_entry_index = map_get(&info->minimum_dependency_type_info_index_map, hash);
if (found_entry_index) {
entry_index = *found_entry_index;
@@ -6744,12 +6744,12 @@ gb_internal void check_parsed_files(Checker *c) {
for_array(i, c->info.type_info_types) {
auto const &tt = c->info.type_info_types[i];
- bool exists = map_set_if_not_previously_exists(&c->info.minimum_dependency_type_info_index_map, cast(uintptr)tt.hash, i);
+ bool exists = map_set_if_not_previously_exists(&c->info.minimum_dependency_type_info_index_map, tt.hash, i);
if (!exists) {
continue;
}
for (auto const &entry : c->info.minimum_dependency_type_info_index_map) {
- if (entry.key != cast(uintptr)tt.hash) {
+ if (entry.key != tt.hash) {
continue;
}
auto const &other = c->info.type_info_types[entry.value];