summaryrefslogtreecommitdiff
path: root/fpdfsdk/src/formfiller
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/formfiller
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/formfiller')
-rw-r--r--fpdfsdk/src/formfiller/FFL_ListBox.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/fpdfsdk/src/formfiller/FFL_ListBox.cpp b/fpdfsdk/src/formfiller/FFL_ListBox.cpp
index 0735f48cf3..0f478fe7e0 100644
--- a/fpdfsdk/src/formfiller/FFL_ListBox.cpp
+++ b/fpdfsdk/src/formfiller/FFL_ListBox.cpp
@@ -101,13 +101,13 @@ FX_BOOL CFFL_ListBox::IsDataChanged(CPDFSDK_PageView* pPageView) {
return FALSE;
if (m_pWidget->GetFieldFlags() & FIELDFLAG_MULTISELECT) {
- int nSelCount = 0;
+ size_t nSelCount = 0;
for (int32_t i = 0, sz = pListBox->GetCount(); i < sz; ++i) {
if (pListBox->IsItemSelected(i)) {
if (m_OriginSelections.count(i) == 0)
return TRUE;
- nSelCount++;
+ ++nSelCount;
}
}