mirror of
https://github.com/justinethier/cyclone.git
synced 2025-07-12 23:37:38 +02:00
Add new string_type field
This commit is contained in:
parent
ccad990626
commit
0ca396f8fa
1 changed files with 1 additions and 0 deletions
1
gc.c
1
gc.c
|
@ -451,6 +451,7 @@ char *gc_copy_obj(object dest, char *obj, gc_thread_data * thd)
|
||||||
memcpy(s, string_str(obj), string_len(obj) + 1);
|
memcpy(s, string_str(obj), string_len(obj) + 1);
|
||||||
mark(hp) = thd->gc_alloc_color;
|
mark(hp) = thd->gc_alloc_color;
|
||||||
type_of(hp) = string_tag;
|
type_of(hp) = string_tag;
|
||||||
|
string_num_cp(hp) = string_num_cp(obj);
|
||||||
string_len(hp) = string_len(obj);
|
string_len(hp) = string_len(obj);
|
||||||
string_str(hp) = s;
|
string_str(hp) = s;
|
||||||
return (char *)hp;
|
return (char *)hp;
|
||||||
|
|
Loading…
Add table
Reference in a new issue