Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(897)

Unified Diff: samples/pdfium_test.cc

Issue 817753002: Fix a few windows compile warnings (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « core/src/fpdftext/fpdf_text_int.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: samples/pdfium_test.cc
diff --git a/samples/pdfium_test.cc b/samples/pdfium_test.cc
index 51199ea5a0ee251539cac32337398183bbc0e5b2..b217f89c705366198e1642ecab412af4bcb4e12e 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;
« no previous file with comments | « core/src/fpdftext/fpdf_text_int.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698