Skip to content

Commit 4d1b3a2

Browse files
committed
Unset STR_SHARED when setting string to embed
1 parent da7b947 commit 4d1b3a2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

string.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ VALUE rb_cSymbol;
124124
FL_SET((str), STR_NOEMBED);\
125125
FL_UNSET((str), STR_SHARED | STR_SHARED_ROOT | STR_BORROWED);\
126126
} while (0)
127-
#define STR_SET_EMBED(str) FL_UNSET((str), (STR_NOEMBED|STR_NOFREE))
127+
#define STR_SET_EMBED(str) FL_UNSET((str), STR_NOEMBED | STR_SHARED | STR_NOFREE)
128128

129129
#define STR_SET_LEN(str, n) do { \
130130
RSTRING(str)->len = (n); \

0 commit comments

Comments
 (0)