mirror of
https://github.com/google/benchmark.git
synced 2025-03-14 03:10:22 +08:00
fix signed/unsigned comparison warning
This commit is contained in:
parent
6a6fc70cf0
commit
b33d1f1d39
@ -345,7 +345,7 @@ int BenchmarkFamilies::AddBenchmark(Benchmark* family) {
|
||||
mutex_lock l(&benchmark_mutex);
|
||||
// This loop attempts to reuse an entry that was previously removed to avoid
|
||||
// unncessary growth of the vector.
|
||||
for (int index = 0; index < families_.size(); ++index) {
|
||||
for (size_t index = 0; index < families_.size(); ++index) {
|
||||
if (families_[index] == nullptr) {
|
||||
families_[index] = family;
|
||||
return index;
|
||||
|
Loading…
Reference in New Issue
Block a user