be specific about a call to min
This commit is contained in:
parent
0b8208ffba
commit
dbc2059a59
@ -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_--;
|
||||
|
Loading…
Reference in New Issue
Block a user