Commit dfb297e3 authored by KOBAYASHI Shuji's avatar KOBAYASHI Shuji

`mrb_str_pool` can embed one more byte; ref #4626

parent f113fa2a
...@@ -170,7 +170,7 @@ mrb_str_pool(mrb_state *mrb, mrb_value str) ...@@ -170,7 +170,7 @@ mrb_str_pool(mrb_state *mrb, mrb_value str)
len = s->as.heap.len; len = s->as.heap.len;
} }
if (len < RSTRING_EMBED_LEN_MAX) { if (RSTR_EMBEDDABLE_P(len)) {
RSTR_SET_EMBED_FLAG(ns); RSTR_SET_EMBED_FLAG(ns);
RSTR_SET_EMBED_LEN(ns, len); RSTR_SET_EMBED_LEN(ns, len);
if (ptr) { if (ptr) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment