diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2014-06-12 07:31:09 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2014-06-12 07:31:09 +0900 |
| commit | d0401dccc4ea5fe7b1769b1f9f86e7900ebde163 (patch) | |
| tree | 6a72e08a0ffa86c55a1d0d640e37993e21d0c7d9 /src/string.c | |
| parent | 63be55c77c98cd77b5e2468719b23f5cedca3df8 (diff) | |
| parent | 75d1412410b337293e884f4906bf743364d56e25 (diff) | |
| download | mruby-d0401dccc4ea5fe7b1769b1f9f86e7900ebde163.tar.gz mruby-d0401dccc4ea5fe7b1769b1f9f86e7900ebde163.zip | |
Merge pull request #2387 from suzukaze/refactor-nofree-p
Refactor how to use RSTR_NOFREE_P macro
Diffstat (limited to 'src/string.c')
| -rw-r--r-- | src/string.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/string.c b/src/string.c index 6d2799270..92a34e70f 100644 --- a/src/string.c +++ b/src/string.c @@ -302,7 +302,7 @@ mrb_gc_free_str(mrb_state *mrb, struct RString *str) /* no code */; else if (RSTR_SHARED_P(str)) 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); } |
