mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-01 07:41:12 +00:00
Merge branch 'trunk' into store-dec-as-str
This commit is contained in:
commit
ffeaa1ac08
30 changed files with 555 additions and 142 deletions
|
@ -584,6 +584,10 @@ impl RocStr {
|
|||
|
||||
let raw_ptr = Self::get_element_ptr(raw_ptr as *mut u8);
|
||||
|
||||
// write the refcount
|
||||
let refcount_ptr = raw_ptr as *mut isize;
|
||||
*(refcount_ptr.offset(-1)) = isize::MIN;
|
||||
|
||||
{
|
||||
// NOTE: using a memcpy here causes weird issues
|
||||
let target_ptr = raw_ptr as *mut u8;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue