Index: fpdfsdk/src/fpdfppo.cpp |
diff --git a/fpdfsdk/src/fpdfppo.cpp b/fpdfsdk/src/fpdfppo.cpp |
index 7b589b585fad4a06af1d8f4cf779d3b53dd175a6..c9df813789b2a5e545f60a5e05c37ee800d10566 100644 |
--- a/fpdfsdk/src/fpdfppo.cpp |
+++ b/fpdfsdk/src/fpdfppo.cpp |
@@ -247,7 +247,7 @@ FX_BOOL CPDF_PageOrganizer::UpdateReference(CPDF_Object* pObj, |
break; |
} |
case PDFOBJ_STREAM: { |
- CPDF_Stream* pStream = (CPDF_Stream*)pObj; |
+ CPDF_Stream* pStream = pObj->AsStream(); |
CPDF_Dictionary* pDict = pStream->GetDict(); |
if (pDict) { |
if (!UpdateReference(pDict, pDoc, pObjNumberMap)) |