Commit b33d1f1d by Paul Redmond

fix signed/unsigned comparison warning

parent 6a6fc70c
...@@ -345,7 +345,7 @@ int BenchmarkFamilies::AddBenchmark(Benchmark* family) { ...@@ -345,7 +345,7 @@ int BenchmarkFamilies::AddBenchmark(Benchmark* family) {
mutex_lock l(&benchmark_mutex); mutex_lock l(&benchmark_mutex);
// This loop attempts to reuse an entry that was previously removed to avoid // This loop attempts to reuse an entry that was previously removed to avoid
// unncessary growth of the vector. // 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) { if (families_[index] == nullptr) {
families_[index] = family; families_[index] = family;
return index; return index;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment