Index: core/fpdfapi/fpdf_font/fpdf_font.cpp |
diff --git a/core/fpdfapi/fpdf_font/fpdf_font.cpp b/core/fpdfapi/fpdf_font/fpdf_font.cpp |
index dccce5656b7c80f772874d642822e23f6b97fdb6..9f7b127d60efb6752f8d4ba153f3d6cfa23454f4 100644 |
--- a/core/fpdfapi/fpdf_font/fpdf_font.cpp |
+++ b/core/fpdfapi/fpdf_font/fpdf_font.cpp |
@@ -139,12 +139,12 @@ uint32_t CPDF_ToUnicodeMap::StringToCode(const CFX_ByteStringC& str) { |
int result = 0; |
if (str[0] == '<') { |
for (int i = 1; i < len && std::isxdigit(str[i]); ++i) |
- result = result * 16 + FXSYS_toHexDigit(str[i]); |
+ result = result * 16 + FXSYS_toHexDigit(str.CharAt(i)); |
return result; |
} |
for (int i = 0; i < len && std::isdigit(str[i]); ++i) |
- result = result * 10 + FXSYS_toDecimalDigit(static_cast<FX_CHAR>(str[i])); |
+ result = result * 10 + FXSYS_toDecimalDigit(str.CharAt(i)); |
return result; |
} |