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 a2d65fa4bd072dd30a47db0fed2afb77c80d90b3..606bd0f569c1e8b7cfa2d94fc2c86568f8a5a593 100644 |
--- a/core/src/fpdfapi/fpdf_parser/fpdf_parser_utility.cpp |
+++ b/core/src/fpdfapi/fpdf_parser/fpdf_parser_utility.cpp |
@@ -417,7 +417,7 @@ CFX_ByteTextBuf& operator<<(CFX_ByteTextBuf& buf, const CPDF_Object* pObj) { |
break; |
} |
case PDFOBJ_STREAM: { |
- CPDF_Stream* p = (CPDF_Stream*)pObj; |
+ const CPDF_Stream* p = pObj->AsStream(); |
buf << p->GetDict() << FX_BSTRC("stream\r\n"); |
CPDF_StreamAcc acc; |
acc.LoadAllData(p, TRUE); |