| Index: core/fpdfapi/fpdf_font/cpdf_cidfont.cpp
|
| diff --git a/core/fpdfapi/fpdf_font/cpdf_cidfont.cpp b/core/fpdfapi/fpdf_font/cpdf_cidfont.cpp
|
| index 9dd045ede95db579b688137e7523b8d83e98d85f..ecc8baa0114bb0d3e081be65f92e88c4936aa3a8 100644
|
| --- a/core/fpdfapi/fpdf_font/cpdf_cidfont.cpp
|
| +++ b/core/fpdfapi/fpdf_font/cpdf_cidfont.cpp
|
| @@ -155,13 +155,12 @@ uint32_t EmbeddedCharcodeFromUnicode(const FXCMAP_CMap* pEmbedMap,
|
| if (!pCodes)
|
| return 0;
|
|
|
| - int nCodes = pFontGlobals->m_EmbeddedToUnicodes[charset].m_Count;
|
| - for (int i = 0; i < nCodes; ++i) {
|
| + for (uint32_t i = 0; i < pFontGlobals->m_EmbeddedToUnicodes[charset].m_Count;
|
| + ++i) {
|
| if (pCodes[i] == unicode) {
|
| uint32_t CharCode = FPDFAPI_CharCodeFromCID(pEmbedMap, i);
|
| - if (CharCode != 0) {
|
| + if (CharCode != 0)
|
| return CharCode;
|
| - }
|
| }
|
| }
|
| return 0;
|
|
|