diff --git a/src/segment.c b/src/segment.c index 424495ca..3af491d6 100644 --- a/src/segment.c +++ b/src/segment.c @@ -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;