mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-29 06:44:46 +00:00
make TestBase64 compile
This commit is contained in:
parent
8846841a95
commit
a4475b7544
5 changed files with 66 additions and 60 deletions
|
@ -128,6 +128,20 @@ pub fn decref(
|
|||
(isizes - 1)[0] = refcount - 1;
|
||||
}
|
||||
},
|
||||
8 => {
|
||||
if (refcount == REFCOUNT_ONE_ISIZE) {
|
||||
dealloc(bytes - 8, alignment);
|
||||
} else if (refcount_isize < 0) {
|
||||
(isizes - 1)[0] = refcount - 1;
|
||||
}
|
||||
},
|
||||
4 => {
|
||||
if (refcount == REFCOUNT_ONE_ISIZE) {
|
||||
dealloc(bytes - 4, alignment);
|
||||
} else if (refcount_isize < 0) {
|
||||
(isizes - 1)[0] = refcount - 1;
|
||||
}
|
||||
},
|
||||
else => {
|
||||
// NOTE enums can currently have an alignment of < 8
|
||||
if (refcount == REFCOUNT_ONE_ISIZE) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue