From 593830435b859650e766b8d490adff0f23c994e9 Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Wed, 18 Nov 2015 00:12:10 -0800 Subject: [PATCH] We should not explicitly cast pointers to doubles. --- Execute.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.49.0