Index: fpdfsdk/src/fpdfppo.cpp |
diff --git a/fpdfsdk/src/fpdfppo.cpp b/fpdfsdk/src/fpdfppo.cpp |
index c37ecca4906f68aa071f25216f39c96a95aef639..b0716309828a0166cbf29c5df3e4142c42197733 100644 |
--- a/fpdfsdk/src/fpdfppo.cpp |
+++ b/fpdfsdk/src/fpdfppo.cpp |
@@ -242,7 +242,7 @@ FX_BOOL CPDF_PageOrganizer::UpdateReference(CPDF_Object* pObj, |
break; |
} |
case PDFOBJ_ARRAY: { |
- CPDF_Array* pArray = (CPDF_Array*)pObj; |
+ CPDF_Array* pArray = pObj->AsArray(); |
FX_DWORD count = pArray->GetCount(); |
for (FX_DWORD i = 0; i < count; i++) { |
CPDF_Object* pNextObj = pArray->GetElement(i); |