mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-29 14:54:47 +00:00
fix formatting
This commit is contained in:
parent
a75ecb2883
commit
56dc503d11
1 changed files with 1 additions and 1 deletions
|
@ -177,7 +177,7 @@ inline fn decref_ptr_to_refcount(
|
|||
) void {
|
||||
const extra_bytes = std.math.max(alignment, @sizeOf(usize));
|
||||
if (USE_ATOMICS) {
|
||||
var amount : isize = if (refcount_ptr[0] < REFCOUNT_MAX_ISIZE) 1 else 0;
|
||||
var amount: isize = if (refcount_ptr[0] < REFCOUNT_MAX_ISIZE) 1 else 0;
|
||||
var last = @atomicRmw(isize, &refcount_ptr[0], std.builtin.AtomicRmwOp.Sub, amount, std.builtin.AtomicOrder.Monotonic);
|
||||
if (last == REFCOUNT_ONE_ISIZE) {
|
||||
dealloc(@ptrCast([*]u8, refcount_ptr) - (extra_bytes - @sizeOf(usize)), alignment);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue