Skip to content

Commit

Permalink
Address the MSVC warnings that crept in recently.
Browse files Browse the repository at this point in the history
Change-Id: I6c4be5df9b454780ba48d9c7fc40ae4e6a61114b
Reviewed-on: https://code-review.googlesource.com/c/re2/+/47594
Reviewed-by: Paul Wankadia <[email protected]>
  • Loading branch information
junyer committed Oct 29, 2019
1 parent 1911d98 commit dadeb5c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions re2/testing/regexp_benchmark.cc
Original file line number Diff line number Diff line change
Expand Up @@ -143,10 +143,10 @@ ParseImpl SearchParse1CachedPCRE, SearchParse1CachedRE2;

// 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;
Expand Down

0 comments on commit dadeb5c

Please sign in to comment.