commit | 87a7f09a47f3bae4c09fdcdd438f5692e01508f8 | [log] [tgz] |
---|---|---|
author | Paul Wankadia <junyer@google.com> | Wed Jun 23 08:36:41 2021 -0700 |
committer | Paul Wankadia <junyer@google.com> | Wed Jun 23 15:41:37 2021 +0000 |
tree | c670f057c80e3aad23b3ff684c20f73b5c4badd3 | |
parent | 4244cd1cb492fa1d10986ec67f862964c073f844 [diff] |
Yikes. int64_t{1}<<31 doesn't actually make sense. Change-Id: I77a36db6129f2d7f2124181a1b7ea7d9369bc4ac Reviewed-on: https://code-review.googlesource.com/c/re2/+/58670 Reviewed-by: Paul Wankadia <junyer@google.com>
diff --git a/re2/testing/regexp_benchmark.cc b/re2/testing/regexp_benchmark.cc index acf6e88..5050286 100644 --- a/re2/testing/regexp_benchmark.cc +++ b/re2/testing/regexp_benchmark.cc
@@ -949,7 +949,7 @@ if (prog == NULL) { Regexp* re = Regexp::Parse(regexp, Regexp::LikePerl, NULL); CHECK(re); - prog = re->CompileToProg(int64_t{1}<<31); // mostly for the DFA + prog = re->CompileToProg(int64_t{1}<<30); // mostly for the DFA CHECK(prog); cache[regexp] = prog; re->Decref();