From 15c4ae7fa71713d6d12c0eaf455470be350f040c Mon Sep 17 00:00:00 2001 From: Joe Bryan Date: Fri, 2 Dec 2022 16:54:27 -0500 Subject: [PATCH] u3: updates guard-page assertion to account for variable loom sizes --- pkg/urbit/noun/events.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/urbit/noun/events.c b/pkg/urbit/noun/events.c index 8020f65d2..a9004dd12 100644 --- a/pkg/urbit/noun/events.c +++ b/pkg/urbit/noun/events.c @@ -590,7 +590,7 @@ _ce_patch_compose(void) sou_w = (swu_w + (pag_wiz_i - 1)) >> u3a_page; c3_assert( ((gar_pag_p >> u3a_page) >= nor_w) - && ((gar_pag_p >> u3a_page) <= (u3a_pages - (sou_w + 1))) ); + && ((gar_pag_p >> u3a_page) <= (u3P.pag_w - (sou_w + 1))) ); } #ifdef U3_SNAPSHOT_VALIDATION