We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 65f3d8d + e81c6e7 commit 997a1b8Copy full SHA for 997a1b8
1 file changed
stacker/src/memory_arena.rs
@@ -38,7 +38,7 @@ const PAGE_SIZE: usize = 1 << NUM_BITS_PAGE_ADDR; // pages are 512k large
38
// We use 32-bits addresses.
39
// - 19 bits for the in-page addressing
40
// - 13 bits for the page id.
41
-// This limits us to 2^13 - 1=8192 for the page id.
+// This limits us to 2^13 - 1=8191 for the page id.
42
const MAX_PAGES: usize = 1 << (32 - NUM_BITS_PAGE_ADDR);
43
44
/// Represents a pointer into the `MemoryArena`
0 commit comments