mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Use RSTR_NOFREE_P in state.c
This commit is contained in:
+1
-1
@@ -182,7 +182,7 @@ mrb_str_pool(mrb_state *mrb, mrb_value str)
|
||||
ns->tt = MRB_TT_STRING;
|
||||
ns->c = mrb->string_class;
|
||||
|
||||
if (s->flags & MRB_STR_NOFREE) {
|
||||
if (RSTR_NOFREE_P(s)) {
|
||||
ns->flags = MRB_STR_NOFREE;
|
||||
ns->as.heap.ptr = s->as.heap.ptr;
|
||||
ns->as.heap.len = s->as.heap.len;
|
||||
|
||||
Reference in New Issue
Block a user