Don't check for STR_NOEMBED in rb_fstring
We don't need to check for STR_NOEMBED because the check above for STR_EMBED_P means that it can never be false.
This commit is contained in:
parent
2800d1fd37
commit
724223b4ca
Notes:
git
2023-08-18 13:25:06 +00:00
3
string.c
3
string.c
@ -421,7 +421,8 @@ rb_fstring(VALUE str)
|
||||
OBJ_FREEZE_RAW(str);
|
||||
return str;
|
||||
}
|
||||
if (FL_TEST_RAW(str, STR_NOEMBED|STR_SHARED_ROOT|STR_SHARED) == (STR_NOEMBED|STR_SHARED_ROOT)) {
|
||||
|
||||
if (FL_TEST_RAW(str, STR_SHARED_ROOT | STR_SHARED) == STR_SHARED_ROOT) {
|
||||
assert(OBJ_FROZEN(str));
|
||||
return str;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user