mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
mrb_str_pool can embed one more byte; ref #4626
This commit is contained in:
+1
-1
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user