Index: core/src/fpdfapi/fpdf_page/fpdf_page_parser.cpp |
diff --git a/core/src/fpdfapi/fpdf_page/fpdf_page_parser.cpp b/core/src/fpdfapi/fpdf_page/fpdf_page_parser.cpp |
index 6f186e6c3b7e9947d14eadb594ea410ea7b7c1ea..7aa2cf8aa3bb7a56e68923bf9741cae0eb734495 100644 |
--- a/core/src/fpdfapi/fpdf_page/fpdf_page_parser.cpp |
+++ b/core/src/fpdfapi/fpdf_page/fpdf_page_parser.cpp |
@@ -514,7 +514,7 @@ void _PDF_ReplaceAbbr(CPDF_Object* pObj) { |
break; |
} |
case PDFOBJ_ARRAY: { |
- CPDF_Array* pArray = (CPDF_Array*)pObj; |
+ CPDF_Array* pArray = pObj->AsArray(); |
for (FX_DWORD i = 0; i < pArray->GetCount(); i++) { |
CPDF_Object* pElement = pArray->GetElement(i); |
if (pElement->IsName()) { |
@@ -577,7 +577,7 @@ void _PDF_ReplaceFull(CPDF_Object* pObj) { |
break; |
} |
case PDFOBJ_ARRAY: { |
- CPDF_Array* pArray = (CPDF_Array*)pObj; |
+ CPDF_Array* pArray = pObj->AsArray(); |
for (FX_DWORD i = 0; i < pArray->GetCount(); i++) { |
CPDF_Object* pElement = pArray->GetElement(i); |
if (pElement->IsName()) { |