| Index: fpdfsdk/javascript/Document.cpp
|
| diff --git a/fpdfsdk/javascript/Document.cpp b/fpdfsdk/javascript/Document.cpp
|
| index 5f6291b35a5e1df29fb69c71593ace42964358ae..2e387efa151e2529dc9b945fab9cdf1ede18db00 100644
|
| --- a/fpdfsdk/javascript/Document.cpp
|
| +++ b/fpdfsdk/javascript/Document.cpp
|
| @@ -1459,7 +1459,7 @@ int Document::CountWords(CPDF_TextObject* pTextObj) {
|
| FX_BOOL bIsLatin = FALSE;
|
|
|
| for (int i = 0, sz = pTextObj->CountChars(); i < sz; i++) {
|
| - FX_DWORD charcode = -1;
|
| + FX_DWORD charcode = static_cast<FX_DWORD>(-1);
|
| FX_FLOAT kerning;
|
|
|
| pTextObj->GetCharInfo(i, charcode, kerning);
|
| @@ -1492,7 +1492,7 @@ CFX_WideString Document::GetObjWordStr(CPDF_TextObject* pTextObj,
|
| FX_BOOL bIsLatin = FALSE;
|
|
|
| for (int i = 0, sz = pTextObj->CountChars(); i < sz; i++) {
|
| - FX_DWORD charcode = -1;
|
| + FX_DWORD charcode = static_cast<FX_DWORD>(-1);
|
| FX_FLOAT kerning;
|
|
|
| pTextObj->GetCharInfo(i, charcode, kerning);
|
|
|