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.
1 parent 4204587 commit 868d16fCopy full SHA for 868d16f
ast_utils/context.c2
@@ -94,7 +94,7 @@ public fn void* Context.alloc(Context* c, u32 len) {
94
c.num_allocs++;
95
96
if (c.cur_size + len > c.cur_allocated) {
97
- if (!c.blk_size) c.blk_size = 16384 - 16;
+ if (!c.blk_size) c.blk_size = 16384 - sizeof(Block);
98
Block* newb = Block.create(len > c.blk_size ? len : c.blk_size);
99
Block* last = c.blk_tail;
100
if (last) {
0 commit comments