X-Git-Url: https://git.saurik.com/apple/javascriptcore.git/blobdiff_plain/6fe7ccc865dc7d7541b93c5bcaf6368d2c98a174..refs/heads/master:/heap/WeakImpl.h?ds=sidebyside diff --git a/heap/WeakImpl.h b/heap/WeakImpl.h index 9924923..ca93fb2 100644 --- a/heap/WeakImpl.h +++ b/heap/WeakImpl.h @@ -26,7 +26,7 @@ #ifndef WeakImpl_h #define WeakImpl_h -#include "JSValue.h" +#include "JSCJSValue.h" namespace JSC { @@ -107,7 +107,7 @@ inline void* WeakImpl::context() inline WeakImpl* WeakImpl::asWeakImpl(JSValue* slot) { - return reinterpret_cast(reinterpret_cast(slot) + OBJECT_OFFSETOF(WeakImpl, m_jsValue)); + return reinterpret_cast_ptr(reinterpret_cast_ptr(slot) + OBJECT_OFFSETOF(WeakImpl, m_jsValue)); } } // namespace JSC