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 63454d2cb5013d0681fb49a1bc157f24114276b9..c34d8122f8671e1a6b1f93a304e3eb672f5365b9 100644 |
--- a/core/src/fpdfapi/fpdf_parser/fpdf_parser_utility.cpp |
+++ b/core/src/fpdfapi/fpdf_parser/fpdf_parser_utility.cpp |
@@ -403,7 +403,7 @@ CFX_ByteTextBuf& operator<<(CFX_ByteTextBuf& buf, const CPDF_Object* pObj) { |
break; |
} |
case PDFOBJ_DICTIONARY: { |
- CPDF_Dictionary* p = (CPDF_Dictionary*)pObj; |
+ const CPDF_Dictionary* p = pObj->AsDictionary(); |
buf << FX_BSTRC("<<"); |
FX_POSITION pos = p->GetStartPos(); |
while (pos) { |