summaryrefslogtreecommitdiff
path: root/foreign.c
diff options
context:
space:
mode:
Diffstat (limited to 'foreign.c')
-rw-r--r--foreign.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/foreign.c b/foreign.c
index b55a908..48d8d4a 100644
--- a/foreign.c
+++ b/foreign.c
@@ -312,8 +312,8 @@ static bool foreign_call(ForeignFnManager *ffmgr, FnExpr *fn, Type *fn_type, Val
static void ffmgr_free(ForeignFnManager *ffmgr) {
arr_foreach(ffmgr->libs_loaded.slots, StrHashTableSlotPtr, slotp) {
if (*slotp) {
- Library lib = *(Library *)((*slotp)->data);
- dlclose(lib.handle);
+ Library *lib = (void *)((*slotp)->data);
+ dlclose(lib->handle);
}
}
str_hash_table_free(&ffmgr->libs_loaded);