From 31929bab1fd7d13b37f74ae27de1711c2ea1681c Mon Sep 17 00:00:00 2001 From: nobu Date: Mon, 23 Feb 2015 07:05:06 +0000 Subject: error.c: predefined IDs * error.c (id_bt, id_bt_locations): use IDs predefined in id.h. * vm_args.c (raise_argument_error): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49697 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- vm_args.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'vm_args.c') diff --git a/vm_args.c b/vm_args.c index 446ad482c4..9e6fb9b990 100644 --- a/vm_args.c +++ b/vm_args.c @@ -682,7 +682,7 @@ raise_argument_error(rb_thread_t *th, const rb_iseq_t *iseq, const VALUE exc) at = rb_vm_backtrace_object(); } - rb_iv_set(exc, "bt_locations", at); + rb_ivar_set(exc, idBt_locations, at); rb_funcall(exc, rb_intern("set_backtrace"), 1, at); rb_exc_raise(exc); } -- cgit v1.2.3