From b48c91a5ac9059c56c948c663c5b471090491bd0 Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Sun, 12 Jan 2014 00:00:44 -0800 Subject: [PATCH] When casting function pointers, it's more complex. --- Execute.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Execute.cpp b/Execute.cpp index 25ab02b..7bf6c7d 100644 --- a/Execute.cpp +++ b/Execute.cpp @@ -1174,7 +1174,7 @@ static JSValueRef Type_callAsFunction(JSContextRef context, JSObjectRef object, Type_privateData *internal(reinterpret_cast(JSObjectGetPrivate(object))); if (internal->type_->primitive == sig::function_P) - return CYMakeFunctor(context, reinterpret_cast(static_cast(CYCastDouble(context, arguments[0]))), internal->type_->data.signature); + return CYMakeFunctor(context, arguments[0], internal->type_->data.signature); sig::Type *type(internal->type_); ffi_type *ffi(internal->GetFFI()); -- 2.49.0