diff options
author | Bo Xu <bo_xu@foxitsoftware.com> | 2014-12-19 02:27:25 -0800 |
---|---|---|
committer | Bo Xu <bo_xu@foxitsoftware.com> | 2014-12-19 02:27:25 -0800 |
commit | 5a35129bce7ca777e155e5498e8d4792fa6a4819 (patch) | |
tree | 0b0482183eb47796cf7c32e6c3ef1b4943173cf6 /samples/pdfium_test.cc | |
parent | ba2dc4a8111448f509e53fc58616b2dad3e742e9 (diff) | |
download | pdfium-chromium/2267.tar.xz |
Fix a few windows compile warningschromium/2268chromium/2267chromium/2266chromium/2265chromium/2264chromium/2263chromium/2262chromium/2261chromium/2260chromium/2259chromium/2258chromium/2257chromium/2256
R=tsepez@chromium.org
Review URL: https://codereview.chromium.org/817753002
Diffstat (limited to 'samples/pdfium_test.cc')
-rw-r--r-- | samples/pdfium_test.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/samples/pdfium_test.cc b/samples/pdfium_test.cc index 51199ea5a0..b217f89c70 100644 --- a/samples/pdfium_test.cc +++ b/samples/pdfium_test.cc @@ -268,7 +268,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") { @@ -310,7 +310,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; |