use decref to deallocate RocStr in zig code

This commit is contained in:
Folkert 2021-04-14 16:53:36 +02:00
parent 6d941e242e
commit 870adb20a8
2 changed files with 3 additions and 6 deletions

View file

@ -1,6 +1,7 @@
const std = @import("std");
const Allocator = std.mem.Allocator;
const REFCOUNT_MAX_ISIZE: comptime isize = 0;
const REFCOUNT_ONE_ISIZE: comptime isize = std.math.minInt(isize);
pub const REFCOUNT_ONE: usize = @bitCast(usize, REFCOUNT_ONE_ISIZE);