diff options
Diffstat (limited to 'llgo/third_party/gofrontend/libgo/runtime/go-map-delete.c')
-rw-r--r-- | llgo/third_party/gofrontend/libgo/runtime/go-map-delete.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llgo/third_party/gofrontend/libgo/runtime/go-map-delete.c b/llgo/third_party/gofrontend/libgo/runtime/go-map-delete.c index aff25d104bf..fb7c331856e 100644 --- a/llgo/third_party/gofrontend/libgo/runtime/go-map-delete.c +++ b/llgo/third_party/gofrontend/libgo/runtime/go-map-delete.c @@ -21,7 +21,7 @@ __go_map_delete (struct __go_map *map, const void *key) const struct __go_map_descriptor *descriptor; const struct __go_type_descriptor *key_descriptor; uintptr_t key_offset; - _Bool (*equalfn) (const void*, const void*, uintptr_t); + const FuncVal *equalfn; size_t key_hash; size_t key_size; size_t bucket_index; @@ -41,14 +41,14 @@ __go_map_delete (struct __go_map *map, const void *key) __go_assert (key_size != -1UL); equalfn = key_descriptor->__equalfn; - key_hash = key_descriptor->__hashfn (key, key_size); + key_hash = __go_call_hashfn (key_descriptor->__hashfn, key, key_size); bucket_index = key_hash % map->__bucket_count; pentry = map->__buckets + bucket_index; while (*pentry != NULL) { char *entry = (char *) *pentry; - if (equalfn (key, entry + key_offset, key_size)) + if (__go_call_equalfn (equalfn, key, entry + key_offset, key_size)) { *pentry = *(void **) entry; if (descriptor->__entry_size >= TinySize) |