Index: core/src/fpdfapi/fpdf_parser/fpdf_parser_parser.cpp |
diff --git a/core/src/fpdfapi/fpdf_parser/fpdf_parser_parser.cpp b/core/src/fpdfapi/fpdf_parser/fpdf_parser_parser.cpp |
index c0150b5435fc6b6209b60a98b0e3efb5da60f96c..8c2bad4acd3500f256cbb12d7a7c761259ef1fc0 100644 |
--- a/core/src/fpdfapi/fpdf_parser/fpdf_parser_parser.cpp |
+++ b/core/src/fpdfapi/fpdf_parser/fpdf_parser_parser.cpp |
@@ -4851,7 +4851,7 @@ FX_BOOL CPDF_HintTables::LoadHintStream(CPDF_Stream* pHintStream) { |
return FALSE; |
CPDF_Dictionary* pDict = pHintStream->GetDict(); |
CPDF_Object* pOffset = pDict ? pDict->GetElement("S") : nullptr; |
- if (!pOffset || pOffset->GetType() != CPDF_Object::NUMBER) |
+ if (!pOffset || !pOffset->IsNumber()) |
return FALSE; |
int shared_hint_table_offset = pOffset->GetInteger(); |
CPDF_StreamAcc acc; |