mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-03 19:58:18 +00:00
Add a comment on REFCOUNT_MAX
This commit is contained in:
parent
d67cc883ca
commit
c8278dcb1c
1 changed files with 2 additions and 0 deletions
|
@ -19,6 +19,8 @@ use roc_module::symbol::Interns;
|
|||
use roc_module::symbol::Symbol;
|
||||
use roc_mono::layout::{Builtin, Layout, LayoutIds, UnionLayout};
|
||||
|
||||
/// "Infinite" reference count, for static values
|
||||
/// Ref counts are encoded as negative numbers where isize::MIN represents 1
|
||||
pub const REFCOUNT_MAX: usize = 0_usize;
|
||||
|
||||
pub fn refcount_1(ctx: &Context, ptr_bytes: u32) -> IntValue<'_> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue