From 1c3dd2c343420160ec2ce76357532f1bf93a5bda Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Fri, 14 Sep 2012 23:15:26 -0700 Subject: [PATCH] Move a line of code so that it matches other cases. --- Execute.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Execute.cpp b/Execute.cpp index 4f7358a..53dda40 100644 --- a/Execute.cpp +++ b/Execute.cpp @@ -1076,10 +1076,10 @@ static JSValueRef Type_getProperty(JSContextRef context, JSObjectRef object, JSS } CYCatch } static JSValueRef Type_callAsFunction(JSContextRef context, JSObjectRef object, JSObjectRef _this, size_t count, const JSValueRef arguments[], JSValueRef *exception) { CYTry { - Type_privateData *internal(reinterpret_cast(JSObjectGetPrivate(object))); - if (count != 1) throw CYJSError(context, "incorrect number of arguments to type cast function"); + Type_privateData *internal(reinterpret_cast(JSObjectGetPrivate(object))); + sig::Type *type(internal->type_); ffi_type *ffi(internal->GetFFI()); // XXX: alignment? -- 2.45.2