Skip to content

Commit

Permalink
better size_t
Browse files Browse the repository at this point in the history
  • Loading branch information
dmah42 committed Feb 17, 2025
1 parent 9c24c39 commit 0c9b9c0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions test/benchmark_min_time_flag_iters_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ BENCHMARK(BM_MyBench);

int main(int argc, char** argv) {
// Make a fake argv and append the new --benchmark_min_time=<foo> to it.
size_t fake_argc = static_cast<size_t>(argc + 1);
std::vector<const char*> fake_argv(fake_argc);
int fake_argc = argc + 1;
std::vector<const char*> fake_argv(static_cast<size_t>(fake_argc));
for (size_t i = 0; i < static_cast<size_t>(argc); ++i) {
fake_argv[i] = argv[i];
}
Expand Down
4 changes: 2 additions & 2 deletions test/benchmark_min_time_flag_time_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ BENCHMARK(BM_MyBench);

int main(int argc, char** argv) {
// Make a fake argv and append the new --benchmark_min_time=<foo> to it.
size_t fake_argc = static_cast<size_t>(argc + 1);
std::vector<const char*> fake_argv(fake_argc);
int fake_argc = argc + 1;
std::vector<const char*> fake_argv(static_cast<size_t>(fake_argc));

for (size_t i = 0; i < static_cast<size_t>(argc); ++i) {
fake_argv[i] = argv[i];
Expand Down

0 comments on commit 0c9b9c0

Please sign in to comment.