mirror of
https://github.com/roc-lang/roc.git
synced 2025-07-19 12:35:07 +00:00
Updated refcount logic
This commit is contained in:
parent
0fe94cbd90
commit
74f2b0afda
4 changed files with 29 additions and 71 deletions
|
@ -231,9 +231,9 @@ inline fn decref_ptr_to_refcount(
|
|||
}
|
||||
}
|
||||
|
||||
pub export fn isUnique(
|
||||
pub fn isUnique(
|
||||
bytes_or_null: ?[*]u8,
|
||||
) bool {
|
||||
) callconv(.C) bool {
|
||||
var bytes = bytes_or_null orelse return true;
|
||||
|
||||
const ptr = @ptrToInt(bytes);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue