Fix compilation error.

Don't declare loop variable inside for (...) clause.
This commit is contained in:
Jason Evans 2010-10-24 20:08:37 -07:00
parent b059a534f7
commit d4bab21756

View File

@ -304,8 +304,10 @@ arena_run_reg_dalloc(arena_run_t *run, void *ptr)
static inline void
arena_chunk_validate_zeroed(arena_chunk_t *chunk, size_t run_ind)
{
size_t i;
size_t *p = (size_t *)((uintptr_t)chunk + (run_ind << PAGE_SHIFT));
for (size_t i = 0; i < PAGE_SIZE / sizeof(size_t); i++)
for (i = 0; i < PAGE_SIZE / sizeof(size_t); i++)
assert(p[i] == 0);
}
#endif