diff --git a/ThunkLibs/include/common/Host.h b/ThunkLibs/include/common/Host.h index b3fcc51c8..f0efe525a 100644 --- a/ThunkLibs/include/common/Host.h +++ b/ThunkLibs/include/common/Host.h @@ -536,8 +536,8 @@ struct CallbackUnpack { } }; -template -using as_guest_layout_if = std::conditional_t, T>; +template +using as_guest_layout_if = std::conditional_t, T>; template struct GuestWrapperForHostFunction; @@ -552,7 +552,7 @@ struct GuestWrapperForHostFunction { static_assert(sizeof...(GuestArgs) == sizeof...(Args)); auto args = - reinterpret_cast, Result>, guest_layout..., uintptr_t>*>(argsv); + reinterpret_cast, Result, Result>, guest_layout..., uintptr_t>*>(argsv); constexpr auto CBIndex = sizeof...(GuestArgs); uintptr_t cb; static_assert(CBIndex <= 18 || CBIndex == 23); @@ -600,9 +600,8 @@ struct GuestWrapperForHostFunction { // This is almost the same type as "Result func(Args..., uintptr_t)", but // individual types annotated as passthrough are wrapped in guest_layout<> - auto callback = - reinterpret_cast (*)(as_guest_layout_if..., uintptr_t)>( - cb); + auto callback = reinterpret_cast (*)( + as_guest_layout_if..., uintptr_t)>(cb); auto f = [&callback](guest_layout... args, uintptr_t target) { // Fold over each of Annotations, Args, and args. This will match up the elements in triplets.