summaryrefslogtreecommitdiff
path: root/vm_args.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-02-23 07:05:06 (GMT)
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-02-23 07:05:06 (GMT)
commit31929bab1fd7d13b37f74ae27de1711c2ea1681c (patch)
tree48995aca3a3e56433d92a821a3b524e44152e233 /vm_args.c
parent4f3217e326c293d5162fb200cc7334e15c3872c5 (diff)
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
Diffstat (limited to 'vm_args.c')
-rw-r--r--vm_args.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vm_args.c b/vm_args.c
index 446ad48..9e6fb9b 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);
}