]> git.saurik.com Git - apple/javascriptcore.git/blobdiff - API/APICast.h
JavaScriptCore-1097.3.tar.gz
[apple/javascriptcore.git] / API / APICast.h
index 4294d3d682a816bb0467d27de6599b0f78325026..f019a7a4b9695dff8bccd7d489e7653ec9501487 100644 (file)
@@ -69,7 +69,7 @@ inline JSC::JSValue toJS(JSC::ExecState* exec, JSValueRef v)
     if (!jsCell)
         return JSC::JSValue();
     if (jsCell->isAPIValueWrapper())
-        return static_cast<JSC::JSAPIValueWrapper*>(jsCell)->value();
+        return JSC::jsCast<JSC::JSAPIValueWrapper*>(jsCell)->value();
     return jsCell;
 #else
     return JSC::JSValue::decode(reinterpret_cast<JSC::EncodedJSValue>(const_cast<OpaqueJSValue*>(v)));