Skip to content

Commit 868d16f

Browse files
committed
Context: replace constant
1 parent 4204587 commit 868d16f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ast_utils/context.c2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ public fn void* Context.alloc(Context* c, u32 len) {
9494
c.num_allocs++;
9595

9696
if (c.cur_size + len > c.cur_allocated) {
97-
if (!c.blk_size) c.blk_size = 16384 - 16;
97+
if (!c.blk_size) c.blk_size = 16384 - sizeof(Block);
9898
Block* newb = Block.create(len > c.blk_size ? len : c.blk_size);
9999
Block* last = c.blk_tail;
100100
if (last) {

0 commit comments

Comments
 (0)