Address the MSVC warnings that crept in recently.
Change-Id: I6c4be5df9b454780ba48d9c7fc40ae4e6a61114b
Reviewed-on: https://code-review.googlesource.com/c/re2/+/47594
Reviewed-by: Paul Wankadia <junyer@google.com>
diff --git a/re2/testing/regexp_benchmark.cc b/re2/testing/regexp_benchmark.cc
index 93d189e..70c0e06 100644
--- a/re2/testing/regexp_benchmark.cc
+++ b/re2/testing/regexp_benchmark.cc
@@ -143,10 +143,10 @@
// Generate random text that won't contain the search string,
// to test worst-case search behavior.
-void MakeText(std::string* text, int nbytes) {
+void MakeText(std::string* text, int64_t nbytes) {
srand(1);
text->resize(nbytes);
- for (int i = 0; i < nbytes; i++) {
+ for (int64_t i = 0; i < nbytes; i++) {
// Generate a one-byte rune that isn't a control character (e.g. '\n').
// Clipping to 0x20 introduces some bias, but we don't need uniformity.
int byte = rand() & 0x7F;