From: Jay Freeman (saurik) Date: Sat, 15 Sep 2012 06:15:26 +0000 (-0700) Subject: Move a line of code so that it matches other cases. X-Git-Tag: v0.9.460~13 X-Git-Url: https://git.saurik.com/cycript.git/commitdiff_plain/1c3dd2c343420160ec2ce76357532f1bf93a5bda Move a line of code so that it matches other cases. --- 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?