Skip to content

Commit 56e5922

Browse files
committed
Solve bug from metacall copy value.
1 parent 0787b98 commit 56e5922

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

source/reflect/source/reflect_value_type.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,8 @@ value value_type_copy(value v)
6666
{
6767
new_v_array[index] = value_type_copy(v_array[index]);
6868
}
69+
70+
return new_v;
6971
}
7072
else if (type_id_map(id) == 0)
7173
{
@@ -81,6 +83,8 @@ value value_type_copy(value v)
8183
{
8284
new_v_map[index] = value_type_copy(v_map[index]);
8385
}
86+
87+
return new_v;
8488
}
8589
else if (type_id_function(id) == 0)
8690
{

0 commit comments

Comments
 (0)