Thunks: Clarify return of a function pointer

This commit is contained in:
Tony Wasserka committed 2022-08-08 16:08:46 +02:00
1 parent c8951de9dd
commit 4b7ed9599d
1 file changed
+1 -1
+1 -1
View File
@@ -114,7 +114,7 @@ inline Result CallHostFunction(Args... args) {
template<typename Result, typename...Args>
static auto GetCallerForHostFunction(Result (*host_func)(Args...))
-> Result(*)(Args...) {
return CallHostFunction<fexthunks_invoke_callback<Result(Args...)>, Result, Args...>;
return &CallHostFunction<fexthunks_invoke_callback<Result(Args...)>, Result, Args...>;
}
// Ensures the given host function can safely be called from guest code.