mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-01 07:41:12 +00:00
fix formatting
This commit is contained in:
parent
577282ced3
commit
cf238862f4
1 changed files with 2 additions and 2 deletions
|
@ -132,7 +132,7 @@ pub fn increfC(ptr_to_refcount: *isize, amount: isize) callconv(.C) void {
|
|||
if (RC_TYPE == Refcount.none) return;
|
||||
var refcount = ptr_to_refcount.*;
|
||||
var masked_amount = if (refcount < REFCOUNT_MAX_ISIZE) amount else 0;
|
||||
switch(RC_TYPE) {
|
||||
switch (RC_TYPE) {
|
||||
Refcount.normal => {
|
||||
ptr_to_refcount.* = refcount + masked_amount;
|
||||
},
|
||||
|
@ -188,7 +188,7 @@ inline fn decref_ptr_to_refcount(
|
|||
) void {
|
||||
if (RC_TYPE == Refcount.none) return;
|
||||
const extra_bytes = std.math.max(alignment, @sizeOf(usize));
|
||||
switch(RC_TYPE) {
|
||||
switch (RC_TYPE) {
|
||||
Refcount.normal => {
|
||||
const refcount: isize = refcount_ptr[0];
|
||||
if (refcount == REFCOUNT_ONE_ISIZE) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue