Index: fpdfsdk/javascript/Field.cpp |
diff --git a/fpdfsdk/javascript/Field.cpp b/fpdfsdk/javascript/Field.cpp |
index 54b4f6432c9e230d93b9bdf8ac56807ba9aca3c9..5b8750d88e7907bb08dc6984ea1242ddfb45fa27 100644 |
--- a/fpdfsdk/javascript/Field.cpp |
+++ b/fpdfsdk/javascript/Field.cpp |
@@ -1014,7 +1014,7 @@ void Field::SetCurrentValueIndices(CPDFSDK_Document* pDocument, |
for (size_t i = 0; i < array.size(); ++i) { |
if (i != 0 && !(dwFieldFlags & (1 << 21))) |
break; |
- if (array[i] < pFormField->CountOptions() && |
+ if (array[i] < static_cast<uint32_t>(pFormField->CountOptions()) && |
!pFormField->IsItemSelected(array[i])) { |
pFormField->SetItemSelection(array[i], TRUE); |
} |