fix LIST_RELEASE_EXCESS_CAPACITY arg count

This commit is contained in:
Brendan Hansknecht 2023-09-28 12:14:19 -07:00
parent c18345d5ce
commit ca283197b9
No known key found for this signature in database
GPG key ID: 0EA784685083E75B
2 changed files with 4 additions and 4 deletions

View file

@ -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(