summaryrefslogtreecommitdiff
path: root/samples
diff options
context:
space:
mode:
authorBo Xu <bo_xu@foxitsoftware.com>2014-12-19 02:27:25 -0800
committerBo Xu <bo_xu@foxitsoftware.com>2014-12-19 14:53:21 -0800
commitd44e39279b08c0954f07283b4fb3e7f3e292e4de (patch)
tree71d46bfeeec112c42cc2ba96b2457d4892540fd2 /samples
parent8f8ae8f7cbe1a87f2154f2584dd79af90065f16e (diff)
downloadpdfium-d44e39279b08c0954f07283b4fb3e7f3e292e4de.tar.xz
XFA: merge patch from CL 817753002
Fix a few windows compile warnings R=tsepez@chromium.org Review URL: https://codereview.chromium.org/817753002
Diffstat (limited to 'samples')
-rw-r--r--samples/pdfium_test.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/samples/pdfium_test.cc b/samples/pdfium_test.cc
index db09a1b963..2ff8f5bbf1 100644
--- a/samples/pdfium_test.cc
+++ b/samples/pdfium_test.cc
@@ -282,7 +282,7 @@ bool ParseCommandLine(const std::vector<std::string>& args,
return false;
}
options->exe_path = args[0];
- int cur_idx = 1;
+ size_t cur_idx = 1;
for (; cur_idx < args.size(); ++cur_idx) {
const std::string& cur_arg = args[cur_idx];
if (cur_arg == "--ppm") {
@@ -324,7 +324,7 @@ bool ParseCommandLine(const std::vector<std::string>& args,
fprintf(stderr, "No input files.\n");
return false;
}
- for (int i = cur_idx; i < args.size(); i++) {
+ for (size_t i = cur_idx; i < args.size(); i++) {
files->push_back(args[i]);
}
return true;