| 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 de119b75d1f4c3dde1f7fd5492e716cbeab8fc9f..3329f5c5771de32d027ad2a5cefffe5619bdbc59 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;
|
|
|