From: Jay Freeman (saurik) Date: Wed, 18 Nov 2015 08:12:10 +0000 (-0800) Subject: We should not explicitly cast pointers to doubles. X-Git-Tag: v0.9.590~307 X-Git-Url: https://git.saurik.com/cycript.git/commitdiff_plain/593830435b859650e766b8d490adff0f23c994e9 We should not explicitly cast pointers to doubles. --- diff --git a/Execute.cpp b/Execute.cpp index 1c32d60..70751a4 100644 --- a/Execute.cpp +++ b/Execute.cpp @@ -425,7 +425,7 @@ const char *CYPoolCCYON(CYPool &pool, JSContextRef context, JSObjectRef object, JSValueRef toCYON(CYGetProperty(context, object, toCYON_s)); if (CYIsCallable(context, toCYON)) { // XXX: this needs to be abstracted behind some kind of function - JSValueRef arguments[1] = {CYCastJSValue(context, static_cast(reinterpret_cast(&objects)))}; + JSValueRef arguments[1] = {CYCastJSValue(context, reinterpret_cast(&objects))}; JSValueRef value(CYCallAsFunction(context, (JSObjectRef) toCYON, object, 1, arguments)); _assert(value != NULL); return CYPoolCString(pool, context, value);