Remove an auto as not correctly inferred.

This commit is contained in:
Matthew Parkinson
2019-01-24 11:48:02 +00:00
parent d5fb7150a3
commit e5c40c1231

View File

@@ -92,20 +92,20 @@ namespace snmalloc
{
// If this wasn't previously Fresh, we need to zero some things.
used = 0;
for (auto i = 0; i < SLAB_COUNT; i++)
for (size_t i = 0; i < SLAB_COUNT; i++)
{
meta[i].zero();
}
}
#ifndef NDEBUG
auto curr = head;
for (auto i = 0; i < SLAB_COUNT - used - 1; i++)
for (size_t i = 0; i < SLAB_COUNT - used - 1; i++)
{
curr = (curr + meta[curr].next + 1) & (SLAB_COUNT - 1);
}
assert(curr == 0);
for (auto i = 0; i < SLAB_COUNT; i++)
for (size_t i = 0; i < SLAB_COUNT; i++)
{
assert(meta[i].is_unused());
}