summaryrefslogtreecommitdiff
path: root/fpdfsdk/src/javascript/Document.cpp
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2015-08-11 14:09:35 -0700
committerLei Zhang <thestig@chromium.org>2015-08-11 14:09:35 -0700
commitb9c3197d815295632be4612301ee635e5eb95df1 (patch)
tree2ebc8827ff3908c9514514da97a932ce11440212 /fpdfsdk/src/javascript/Document.cpp
parent119dc646ff7c108cc7319dbc11e05958d98fadfe (diff)
downloadpdfium-b9c3197d815295632be4612301ee635e5eb95df1.tar.xz
Fix some sign comparison warnings.
R=tsepez@chromium.org Review URL: https://codereview.chromium.org/1279493003 . (cherry picked from commit b4c2167fff88665089eeab47afa45a9e890060a3) Review URL: https://codereview.chromium.org/1287703002 .
Diffstat (limited to 'fpdfsdk/src/javascript/Document.cpp')
-rw-r--r--fpdfsdk/src/javascript/Document.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/fpdfsdk/src/javascript/Document.cpp b/fpdfsdk/src/javascript/Document.cpp
index 9d231581df..7f078e5a5e 100644
--- a/fpdfsdk/src/javascript/Document.cpp
+++ b/fpdfsdk/src/javascript/Document.cpp
@@ -1208,7 +1208,7 @@ CFX_WideString Document::CutString(CFX_WideString cbFrom) {
wchar_t* pResult = (wchar_t*)malloc(iSize.ValueOrDie());
wchar_t* pFrom = (wchar_t*)cbFrom.GetBuffer(iLength);
- for (int i = 0; i < iLength; i++) {
+ for (size_t i = 0; i < iLength; i++) {
if (pFrom[i] == L'\\' || pFrom[i] == L'/') {
pResult[i] = L'\0';
break;