| Index: fpdfsdk/javascript/Document.cpp
|
| diff --git a/fpdfsdk/javascript/Document.cpp b/fpdfsdk/javascript/Document.cpp
|
| index 0b793db0497aa1748a33fbecb9ef606f4607a3cc..70b4ef7e032eacc936816088d9efccc0175972cc 100644
|
| --- a/fpdfsdk/javascript/Document.cpp
|
| +++ b/fpdfsdk/javascript/Document.cpp
|
| @@ -1460,7 +1460,7 @@ int Document::CountWords(CPDF_TextObject* pTextObj) {
|
| FX_BOOL bIsLatin = FALSE;
|
|
|
| for (int i = 0, sz = pTextObj->CountChars(); i < sz; i++) {
|
| - uint32_t charcode = static_cast<uint32_t>(-1);
|
| + uint32_t charcode = CPDF_Font::kInvalidCharCode;
|
| FX_FLOAT kerning;
|
|
|
| pTextObj->GetCharInfo(i, charcode, kerning);
|
| @@ -1493,7 +1493,7 @@ CFX_WideString Document::GetObjWordStr(CPDF_TextObject* pTextObj,
|
| FX_BOOL bIsLatin = FALSE;
|
|
|
| for (int i = 0, sz = pTextObj->CountChars(); i < sz; i++) {
|
| - uint32_t charcode = static_cast<uint32_t>(-1);
|
| + uint32_t charcode = CPDF_Font::kInvalidCharCode;
|
| FX_FLOAT kerning;
|
|
|
| pTextObj->GetCharInfo(i, charcode, kerning);
|
|
|