rename var

This commit is contained in:
Folkert 2021-05-23 16:24:53 +02:00
parent 40c405c67b
commit 2a0ba43515

View file

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