Updated refcount logic

This commit is contained in:
J.Teeuwissen 2023-04-26 17:39:46 +02:00
parent 0fe94cbd90
commit 74f2b0afda
No known key found for this signature in database
GPG key ID: DB5F7A1ED8D478AD
4 changed files with 29 additions and 71 deletions

View file

@ -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);