Add missing reinterpret_cast from void to v8::Isolate*
authorJochen Eisinger <jochen@chromium.org>
Wed, 15 Jul 2015 12:47:39 +0000 (14:47 +0200)
committerJochen Eisinger <jochen@chromium.org>
Wed, 15 Jul 2015 12:47:39 +0000 (14:47 +0200)
BUG=none
TBR=tsepez@chromium.org

Review URL: https://codereview.chromium.org/1241863003 .

fpdfsdk/src/javascript/JS_Runtime.cpp

index 6ceb640..b26f5a2 100644 (file)
@@ -114,7 +114,7 @@ CJS_Runtime::CJS_Runtime(CPDFDoc_Environment * pApp) :
         m_isolate(NULL)
 {
        if (m_pApp->GetFormFillInfo()->m_pJsPlatform->version >= 2) {
-               m_isolate = m_pApp->GetFormFillInfo()->m_pJsPlatform->m_isolate;
+               m_isolate = reinterpret_cast<v8::Isolate*>(m_pApp->GetFormFillInfo()->m_pJsPlatform->m_isolate);
        }
        if (!m_isolate) {
                m_pArrayBufferAllocator.reset(new CJS_ArrayBufferAllocator());