Unset STR_SHARED when setting string to embed
This commit is contained in:
parent
da7b9478d3
commit
4d1b3a2bf3
2
string.c
2
string.c
@ -124,7 +124,7 @@ VALUE rb_cSymbol;
|
||||
FL_SET((str), STR_NOEMBED);\
|
||||
FL_UNSET((str), STR_SHARED | STR_SHARED_ROOT | STR_BORROWED);\
|
||||
} while (0)
|
||||
#define STR_SET_EMBED(str) FL_UNSET((str), (STR_NOEMBED|STR_NOFREE))
|
||||
#define STR_SET_EMBED(str) FL_UNSET((str), STR_NOEMBED | STR_SHARED | STR_NOFREE)
|
||||
|
||||
#define STR_SET_LEN(str, n) do { \
|
||||
RSTRING(str)->len = (n); \
|
||||
|
Loading…
x
Reference in New Issue
Block a user