Commit 75d14124 authored by Jun Hiroe's avatar Jun Hiroe

Refactor how to use RSTR_NOFREE_P macro

parent 63be55c7
...@@ -302,7 +302,7 @@ mrb_gc_free_str(mrb_state *mrb, struct RString *str) ...@@ -302,7 +302,7 @@ mrb_gc_free_str(mrb_state *mrb, struct RString *str)
/* no code */; /* no code */;
else if (RSTR_SHARED_P(str)) else if (RSTR_SHARED_P(str))
str_decref(mrb, str->as.heap.aux.shared); str_decref(mrb, str->as.heap.aux.shared);
else if (RSTR_NOFREE_P(str) == 0) else if (!RSTR_NOFREE_P(str))
mrb_free(mrb, str->as.heap.ptr); mrb_free(mrb, str->as.heap.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