From aacd7710462142df7397618ffff4279e495f10f9 Mon Sep 17 00:00:00 2001 From: ko1 Date: Mon, 13 May 2013 09:56:22 +0000 Subject: * *.c, parse.y, insns.def: use RARRAY_AREF/ASET macro instead of using RARRAY_PTR(). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40690 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- vm_method.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'vm_method.c') diff --git a/vm_method.c b/vm_method.c index 516b87cb3e..3882b98d4e 100644 --- a/vm_method.c +++ b/vm_method.c @@ -1574,8 +1574,8 @@ rb_obj_respond_to(VALUE obj, ID id, int priv) (FL_TEST(klass, FL_SINGLETON) ? '.' : '#'), QUOTE_ID(id)); if (!NIL_P(location)) { - VALUE path = RARRAY_PTR(location)[0]; - VALUE line = RARRAY_PTR(location)[1]; + VALUE path = RARRAY_AREF(location, 0); + VALUE line = RARRAY_AREF(location, 1); if (!NIL_P(path)) { rb_compile_warn(RSTRING_PTR(path), NUM2INT(line), "respond_to? is defined here"); -- cgit v1.2.3