From 44a73ecab6e91519627786a5101cd4f1a2f2b0d7 Mon Sep 17 00:00:00 2001 From: Kimplul Date: Wed, 30 Oct 2024 00:57:33 +0200 Subject: most of the way to passing tests --- src/pmem.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/pmem.c') diff --git a/src/pmem.c b/src/pmem.c index a0cd4ec..9c839f1 100644 --- a/src/pmem.c +++ b/src/pmem.c @@ -277,9 +277,7 @@ static pm_t __alloc_page(enum mm_order order) __get_bit(bucket, a, &set, &bit); bmap = __get_set(bucket, set); - /* hmm, I might be running into a compiler bug here. Adding this - * assert makes my error go away, weird. */ - assert(bmap->size <= order_width(order + 1)); + bmap->size = order_width(order + 1); bmap->next = NULL; bmap->prev = NULL; -- cgit v1.3