mirror of
https://github.com/roc-lang/roc.git
synced 2025-07-19 12:35:07 +00:00
switch to wrapping subtract since it is safe here
This commit is contained in:
parent
afaf59a050
commit
ca8b052094
1 changed files with 1 additions and 1 deletions
|
@ -197,7 +197,7 @@ inline fn decref_ptr_to_refcount(
|
|||
if (refcount != REFCOUNT_MAX_ISIZE) {
|
||||
switch (RC_TYPE) {
|
||||
Refcount.normal => {
|
||||
refcount_ptr[0] = refcount - 1;
|
||||
refcount_ptr[0] = refcount -% 1;
|
||||
if (refcount == REFCOUNT_ONE_ISIZE) {
|
||||
dealloc(@ptrCast([*]u8, refcount_ptr) - (extra_bytes - @sizeOf(usize)), alignment);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue