u3: switch page size constants to macros to avoid VLAs

This commit is contained in:
Joe Bryan 2022-12-02 11:55:30 -05:00
parent a7022e75a0
commit 62a575f63e

View File

@ -99,10 +99,10 @@
static u3p(c3_w) gar_pag_p;
//! Urbit page size in 4-byte words.
static const size_t pag_wiz_i = (size_t)1 << u3a_page;
#define pag_wiz_i ((size_t)1 << u3a_page)
//! Urbit page size in bytes.
static const size_t pag_siz_i = (size_t)1 << (u3a_page + 2);
#define pag_siz_i ((size_t)1 << (u3a_page + 2))
#ifdef U3_SNAPSHOT_VALIDATION
/* Image check.