mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-01 15:51:12 +00:00
rename var
This commit is contained in:
parent
40c405c67b
commit
2a0ba43515
1 changed files with 2 additions and 2 deletions
|
@ -144,8 +144,8 @@ impl<T> RocList<T> {
|
||||||
let raw_ptr = Self::get_element_ptr(raw_ptr as *mut T) as *mut T;
|
let raw_ptr = Self::get_element_ptr(raw_ptr as *mut T) as *mut T;
|
||||||
|
|
||||||
// write the refcount
|
// write the refcount
|
||||||
let capacity_ptr = raw_ptr as *mut isize;
|
let refcount_ptr = raw_ptr as *mut isize;
|
||||||
*(capacity_ptr.offset(-1)) = isize::MIN;
|
*(refcount_ptr.offset(-1)) = isize::MIN;
|
||||||
|
|
||||||
{
|
{
|
||||||
// NOTE: using a memcpy here causes weird issues
|
// NOTE: using a memcpy here causes weird issues
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue