| Index: core/fpdfapi/fpdf_cmaps/fpdf_cmaps.cpp
|
| diff --git a/core/fpdfapi/fpdf_cmaps/fpdf_cmaps.cpp b/core/fpdfapi/fpdf_cmaps/fpdf_cmaps.cpp
|
| index 3cd6106e1c61d1dac9c71514b099d5744c24ebd2..9248efb71813f184b42a8f1728a895de07599340 100644
|
| --- a/core/fpdfapi/fpdf_cmaps/fpdf_cmaps.cpp
|
| +++ b/core/fpdfapi/fpdf_cmaps/fpdf_cmaps.cpp
|
| @@ -18,11 +18,10 @@ void FPDFAPI_FindEmbeddedCMap(const char* name,
|
| CPDF_ModuleMgr::Get()->GetPageModule()->GetFontGlobals();
|
| const FXCMAP_CMap* pCMaps =
|
| pFontGlobals->m_EmbeddedCharsets[charset].m_pMapList;
|
| - int nCMaps = pFontGlobals->m_EmbeddedCharsets[charset].m_Count;
|
| - for (int i = 0; i < nCMaps; i++) {
|
| - if (FXSYS_strcmp(name, pCMaps[i].m_Name)) {
|
| + for (uint32_t i = 0; i < pFontGlobals->m_EmbeddedCharsets[charset].m_Count;
|
| + i++) {
|
| + if (FXSYS_strcmp(name, pCMaps[i].m_Name))
|
| continue;
|
| - }
|
| pMap = &pCMaps[i];
|
| break;
|
| }
|
|
|