fix uint8_t to size_t comparison (issue #525)

This commit is contained in:
Daan 2022-01-16 12:12:45 -08:00
parent 9c583eb910
commit 2cb2c7fd80

View File

@ -658,7 +658,7 @@ static mi_segment_t* mi_segment_init(mi_segment_t* segment, size_t required, mi_
memset((uint8_t*)segment + ofs, 0, info_size - ofs);
// initialize pages info
for (uint8_t i = 0; i < capacity; i++) {
for (size_t i = 0; i < capacity; i++) {
segment->pages[i].segment_idx = i;
segment->pages[i].is_reset = false;
segment->pages[i].is_committed = commit;