mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 22:09:09 +00:00
use exhaustive refcount pattern match
This commit is contained in:
parent
a1c469232f
commit
3ef40e2e82
1 changed files with 2 additions and 2 deletions
|
@ -144,7 +144,7 @@ pub fn increfC(ptr_to_refcount: *isize, amount: isize) callconv(.C) void {
|
|||
next = std.math.min(refcount + amount, REFCOUNT_MAX_ISIZE);
|
||||
}
|
||||
},
|
||||
else => unreachable,
|
||||
Refcount.none => unreachable,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -211,7 +211,7 @@ inline fn decref_ptr_to_refcount(
|
|||
}
|
||||
}
|
||||
},
|
||||
else => unreachable,
|
||||
Refcount.none => unreachable,
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue