aboutsummaryrefslogtreecommitdiffstats
path: root/gc.c
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-02-02 04:39:44 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-02-02 04:39:44 +0000
commit21daa56b2aa2d4afc6e61b0e6b0f4dd78df620ca (patch)
tree44af7c3cce6e6197bf7a15fd3c8ab323fb8a343a /gc.c
parent737332061566781684501216991e5a20edcca03b (diff)
downloadruby-21daa56b2aa2d4afc6e61b0e6b0f4dd78df620ca.tar.gz
* re.c: Introduce RREGEXP_PTR.
patch by dbussink. partially merge https://github.com/ruby/ruby/pull/497 * include/ruby/ruby.h: ditto. * gc.c: ditto. * ext/strscan/strscan.c: ditto. * parse.y: ditto. * string.c: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53715 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'gc.c')
-rw-r--r--gc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gc.c b/gc.c
index 9adb384a16..acb7ec9780 100644
--- a/gc.c
+++ b/gc.c
@@ -3107,8 +3107,8 @@ obj_memsize_of(VALUE obj, int use_all_types)
}
break;
case T_REGEXP:
- if (RREGEXP(obj)->ptr) {
- size += onig_memsize(RREGEXP(obj)->ptr);
+ if (RREGEXP_PTR(obj)) {
+ size += onig_memsize(RREGEXP_PTR(obj));
}
break;
case T_DATA: