diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2014-07-03 21:45:28 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2014-07-03 21:45:28 +0900 |
| commit | d2910a162d11bf23ac58a8d984c674bbd6b68dbc (patch) | |
| tree | 2fd99ffbb7db3d154bf5894831b3950f3378b11c | |
| parent | 65512f6557887c00af074eb3371f08bfb89dea63 (diff) | |
| parent | bd82d7c794b2fedbcd7e35e1d1b8ad8f7aa0b1ae (diff) | |
| download | mruby-d2910a162d11bf23ac58a8d984c674bbd6b68dbc.tar.gz mruby-d2910a162d11bf23ac58a8d984c674bbd6b68dbc.zip | |
Merge pull request #2442 from suzukaze/use-mrb-str-nofree-macro
Use RSTR_NOFREE_P in state.c
| -rw-r--r-- | src/state.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/state.c b/src/state.c index 6ce429c7e..ff0182f22 100644 --- a/src/state.c +++ b/src/state.c @@ -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; |
