Skip to content

Commit

Permalink
hashtest: do not use typeof(...)
Browse files Browse the repository at this point in the history
This is a GNU extension that is not supported in all build configurations.

PiperOrigin-RevId: 674065079
  • Loading branch information
ncbray authored and copybara-github committed Sep 13, 2024
1 parent d2cafe1 commit 9dcaf8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fuzzer/hashtest/hashtest_runner_main.cc
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ int TestMain(std::vector<char*> positional_args) {
std::optional<absl::Duration> maybe_time = absl::GetFlag(FLAGS_time);
if (maybe_time.has_value()) {
result.testing_deadline = test_started + maybe_time.value();
num_corpora = std::numeric_limits<typeof(num_corpora)>::max();
num_corpora = std::numeric_limits<size_t>::max();
}

std::vector<ThreadStats> stats(workers.NumWorkers());
Expand Down

0 comments on commit 9dcaf8c

Please sign in to comment.