fix signed/unsigned comparison warning

This commit is contained in:
Paul Redmond 2014-07-23 10:35:12 -04:00
parent 6a6fc70cf0
commit b33d1f1d39

View File

@ -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;