Index: core/fpdfapi/fpdf_parser/cpdf_syntax_parser.cpp |
diff --git a/core/fpdfapi/fpdf_parser/cpdf_syntax_parser.cpp b/core/fpdfapi/fpdf_parser/cpdf_syntax_parser.cpp |
index 5a3db292e0f006c31a2d7693c98045daf9d0fc64..d04a682b77cfa05bc56b3854e46ec38cc8be6965 100644 |
--- a/core/fpdfapi/fpdf_parser/cpdf_syntax_parser.cpp |
+++ b/core/fpdfapi/fpdf_parser/cpdf_syntax_parser.cpp |
@@ -399,7 +399,7 @@ CPDF_Object* CPDF_SyntaxParser::GetObject(CPDF_IndirectObjectHolder* pObjList, |
} |
} |
m_Pos = SavedPos; |
- return new CPDF_Number(word); |
+ return new CPDF_Number(word.AsByteStringC()); |
} |
if (word == "true" || word == "false") |
@@ -521,7 +521,7 @@ CPDF_Object* CPDF_SyntaxParser::GetObjectByStrict( |
return new CPDF_Reference(pObjList, FXSYS_atoui(word)); |
} |
m_Pos = SavedPos; |
- return new CPDF_Number(word); |
+ return new CPDF_Number(word.AsByteStringC()); |
} |
if (word == "true" || word == "false") |