summaryrefslogtreecommitdiff
path: root/src/runtime/c/gu/fun.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/runtime/c/gu/fun.h')
-rw-r--r--src/runtime/c/gu/fun.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/runtime/c/gu/fun.h b/src/runtime/c/gu/fun.h
index f4c1a5a38..5c14de6e9 100644
--- a/src/runtime/c/gu/fun.h
+++ b/src/runtime/c/gu/fun.h
@@ -12,17 +12,17 @@ typedef void (*GuFn2)(GuFn* clo, void* arg1, void* arg2);
static inline void
gu_apply0(GuFn* fn) {
- (*fn)(fn);
+ ((GuFn0)(*fn))(fn);
}
static inline void
gu_apply1(GuFn* fn, void* arg1) {
- (*fn)(fn, arg1);
+ ((GuFn1)(*fn))(fn, arg1);
}
static inline void
gu_apply2(GuFn* fn, void* arg1, void* arg2) {
- (*fn)(fn, arg1, arg2);
+ ((GuFn2)(*fn))(fn, arg1, arg2);
}
#define gu_apply(fn_, ...) \