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

Unified Diff: third_party/re2/re2/testing/exhaustive2_test.cc

Issue 1516543002: Update re2 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Nits Created 5 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
Index: third_party/re2/re2/testing/exhaustive2_test.cc
diff --git a/third_party/re2/re2/testing/exhaustive2_test.cc b/third_party/re2/re2/testing/exhaustive2_test.cc
index c5fec5b3e4a884b03a5717653864499fa7730bb2..6dc50166a6896eca05b4b4343675191560c00535 100644
--- a/third_party/re2/re2/testing/exhaustive2_test.cc
+++ b/third_party/re2/re2/testing/exhaustive2_test.cc
@@ -23,7 +23,7 @@ TEST(EmptyString, Exhaustive) {
TEST(Punctuation, Literals) {
vector<string> alphabet = Explode("()*+?{}[]\\^$.");
vector<string> escaped = alphabet;
- for (int i = 0; i < escaped.size(); i++)
+ for (size_t i = 0; i < escaped.size(); i++)
escaped[i] = "\\" + escaped[i];
ExhaustiveTest(1, 1, escaped, RegexpGenerator::EgrepOps(),
2, alphabet, "", "");

Powered by Google App Engine
This is Rietveld 408576698