Index: core/src/fpdfapi/fpdf_parser/fpdf_parser_utility.cpp |
diff --git a/core/src/fpdfapi/fpdf_parser/fpdf_parser_utility.cpp b/core/src/fpdfapi/fpdf_parser/fpdf_parser_utility.cpp |
index 2c161a7dd4621204551000c785027e282016f622..a2d65fa4bd072dd30a47db0fed2afb77c80d90b3 100644 |
--- a/core/src/fpdfapi/fpdf_parser/fpdf_parser_utility.cpp |
+++ b/core/src/fpdfapi/fpdf_parser/fpdf_parser_utility.cpp |
@@ -386,7 +386,7 @@ CFX_ByteTextBuf& operator<<(CFX_ByteTextBuf& buf, const CPDF_Object* pObj) { |
break; |
} |
case PDFOBJ_ARRAY: { |
- CPDF_Array* p = (CPDF_Array*)pObj; |
+ const CPDF_Array* p = pObj->AsArray(); |
buf << FX_BSTRC("["); |
for (FX_DWORD i = 0; i < p->GetCount(); i++) { |
CPDF_Object* pElement = p->GetElement(i); |