Unverified Commit 8a3457c3 authored by Yukihiro "Matz" Matsumoto's avatar Yukihiro "Matz" Matsumoto Committed by GitHub

Merge pull request #4629 from shuujii/mrb_str_pool-can-embed-one-more-byte

`mrb_str_pool` can embed one more byte; ref #4626
parents f113fa2a dfb297e3
......@@ -170,7 +170,7 @@ mrb_str_pool(mrb_state *mrb, mrb_value str)
len = s->as.heap.len;
}
if (len < RSTRING_EMBED_LEN_MAX) {
if (RSTR_EMBEDDABLE_P(len)) {
RSTR_SET_EMBED_FLAG(ns);
RSTR_SET_EMBED_LEN(ns, len);
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