Skip to content

Commit d5dceb6

Browse files
committed
Mark assigned strings as global
1 parent 6eafec6 commit d5dceb6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/scratch/value_functions.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ extern "C"
6363
void value_assign_cstring(ValueData *v, const char *stringValue)
6464
{
6565
if (v->type != ValueType::String) {
66-
v->stringValue = string_pool_new();
66+
v->stringValue = string_pool_new(false);
6767
v->type = ValueType::String;
6868
}
6969

@@ -74,7 +74,7 @@ extern "C"
7474
void value_assign_stringPtr(ValueData *v, const StringPtr *stringValue)
7575
{
7676
if (v->type != ValueType::String) {
77-
v->stringValue = string_pool_new();
77+
v->stringValue = string_pool_new(false);
7878
v->type = ValueType::String;
7979
}
8080

@@ -103,7 +103,7 @@ extern "C"
103103
if (v->type == ValueType::String)
104104
string_assign(v->stringValue, another->stringValue);
105105
else {
106-
v->stringValue = string_pool_new();
106+
v->stringValue = string_pool_new(false);
107107
string_assign(v->stringValue, another->stringValue);
108108
v->type = ValueType::String;
109109
}

0 commit comments

Comments
 (0)