summaryrefslogtreecommitdiff
path: root/fxjs
diff options
context:
space:
mode:
Diffstat (limited to 'fxjs')
-rw-r--r--fxjs/cjs_document.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/fxjs/cjs_document.cpp b/fxjs/cjs_document.cpp
index 4885d68e1b..46ece171b0 100644
--- a/fxjs/cjs_document.cpp
+++ b/fxjs/cjs_document.cpp
@@ -1335,7 +1335,7 @@ int Document::CountWords(CPDF_TextObject* pTextObj) {
bool bIsLatin = false;
- for (int i = 0, sz = pTextObj->CountChars(); i < sz; i++) {
+ for (size_t i = 0, sz = pTextObj->CountChars(); i < sz; ++i) {
uint32_t charcode = CPDF_Font::kInvalidCharCode;
float kerning;
@@ -1367,7 +1367,7 @@ WideString Document::GetObjWordStr(CPDF_TextObject* pTextObj, int nWordIndex) {
int nWords = 0;
bool bIsLatin = false;
- for (int i = 0, sz = pTextObj->CountChars(); i < sz; i++) {
+ for (size_t i = 0, sz = pTextObj->CountChars(); i < sz; ++i) {
uint32_t charcode = CPDF_Font::kInvalidCharCode;
float kerning;