mirror of
https://github.com/roc-lang/roc.git
synced 2025-07-24 06:55:15 +00:00
fix LIST_RELEASE_EXCESS_CAPACITY arg count
This commit is contained in:
parent
c18345d5ce
commit
ca283197b9
2 changed files with 4 additions and 4 deletions
|
@ -267,9 +267,9 @@ pub fn freeDataPtrC(
|
|||
const masked_ptr = ptr & ~tag_mask;
|
||||
|
||||
const isizes: [*]isize = @as([*]isize, @ptrFromInt(masked_ptr));
|
||||
const offset = @max(1, @divFloor(alignment, @sizeOf(usize)));
|
||||
|
||||
return freeRcPtrC(isizes - offset, alignment);
|
||||
// we always store the refcount right before the data
|
||||
return freeRcPtrC(isizes - 1, alignment);
|
||||
}
|
||||
|
||||
pub fn freeRcPtrC(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue