From 2cb2c7fd80110e51e4499e40950ceee1ba4310a3 Mon Sep 17 00:00:00 2001 From: Daan Date: Sun, 16 Jan 2022 12:12:45 -0800 Subject: [PATCH] fix uint8_t to size_t comparison (issue #525) --- src/segment.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;