]> git.saurik.com Git - cycript.git/commitdiff
We should not explicitly cast pointers to doubles.
authorJay Freeman (saurik) <saurik@saurik.com>
Wed, 18 Nov 2015 08:12:10 +0000 (00:12 -0800)
committerJay Freeman (saurik) <saurik@saurik.com>
Wed, 18 Nov 2015 08:12:10 +0000 (00:12 -0800)
Execute.cpp

index 1c32d602ab635048e294675d1d0e7aa94cce708e..70751a4b2555a331c9d05a98c53f032bb4cf8b83 100644 (file)
@@ -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 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<double>(reinterpret_cast<uintptr_t>(&objects)))};
+        JSValueRef arguments[1] = {CYCastJSValue(context, reinterpret_cast<uintptr_t>(&objects))};
         JSValueRef value(CYCallAsFunction(context, (JSObjectRef) toCYON, object, 1, arguments));
         _assert(value != NULL);
         return CYPoolCString(pool, context, value);
         JSValueRef value(CYCallAsFunction(context, (JSObjectRef) toCYON, object, 1, arguments));
         _assert(value != NULL);
         return CYPoolCString(pool, context, value);