be specific about a call to min

This commit is contained in:
Joe Thornber 2011-12-15 16:16:50 +00:00
parent 0b8208ffba
commit dbc2059a59

View File

@ -75,7 +75,7 @@ namespace persistent_data {
}
maybe_block new_block(block_address begin, block_address end) {
for (block_address i = begin; i < min(end, counts_.size()); i++)
for (block_address i = begin; i < std::min<block_address>(end, counts_.size()); i++)
if (counts_[i] == 0) {
counts_[i] = 1;
nr_free_--;