mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-03 19:58:18 +00:00
Update crates/roc_std/src/roc_box.rs
This commit is contained in:
parent
dccc0f68da
commit
1036695b77
1 changed files with 1 additions and 1 deletions
|
@ -76,7 +76,7 @@ where
|
|||
|
||||
/// The raw pointer to a roc box, including the leading refcount
|
||||
/// Intended for use by platforms in roc_dealloc
|
||||
pub unsafe fn as_ptr(&self) -> *mut c_void {
|
||||
pub unsafe fn as_refcount_ptr(&self) -> *mut c_void {
|
||||
let alignment = Self::alloc_alignment();
|
||||
let with_offset = unsafe { self.contents.as_ptr().cast::<u8>().sub(alignment) };
|
||||
with_offset as *mut c_void
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue