mirror of
https://github.com/urbit/shrub.git
synced 2024-12-20 01:01:37 +03:00
u3: switch page size constants to macros to avoid VLAs
This commit is contained in:
parent
a7022e75a0
commit
62a575f63e
@ -99,10 +99,10 @@
|
|||||||
static u3p(c3_w) gar_pag_p;
|
static u3p(c3_w) gar_pag_p;
|
||||||
|
|
||||||
//! Urbit page size in 4-byte words.
|
//! 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.
|
//! 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
|
#ifdef U3_SNAPSHOT_VALIDATION
|
||||||
/* Image check.
|
/* Image check.
|
||||||
|
Loading…
Reference in New Issue
Block a user