From 286714261d30f38765f225c9bd73ba863271fd2c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Kochma=C5=84ski?= Date: Thu, 6 Oct 2016 12:23:48 +0200 Subject: [PATCH] GC_call_with_alloc_lock: cast functions to GC_fn_type --- src/c/hash.d | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/c/hash.d b/src/c/hash.d index b53563baa..5f44eebfb 100644 --- a/src/c/hash.d +++ b/src/c/hash.d @@ -506,19 +506,19 @@ copy_entry(struct ecl_hashtable_entry *e, cl_object h) struct ecl_hashtable_entry output = *e; switch (h->hash.weak) { case ecl_htt_weak_key: - if (GC_call_with_alloc_lock(normalize_weak_key_entry, + if (GC_call_with_alloc_lock((GC_fn_type)normalize_weak_key_entry, &output)) { return output; } break; case ecl_htt_weak_value: - if (GC_call_with_alloc_lock(normalize_weak_value_entry, + if (GC_call_with_alloc_lock((GC_fn_type)normalize_weak_value_entry, &output)) { return output; } break; case ecl_htt_weak_key_and_value: - if (GC_call_with_alloc_lock(normalize_weak_key_and_value_entry, + if (GC_call_with_alloc_lock((GC_fn_type)normalize_weak_key_and_value_entry, &output)) { return output; }