summaryrefslogtreecommitdiff
path: root/vm.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-04-01 21:30:36 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-04-01 21:30:36 +0000
commita4d6f2265a98feba2d336c9d6faa7df38fe630d3 (patch)
tree7522603c0f6548df7a51e9e4e9332315dc96c295 /vm.c
parentddf9b405add8ee0ad080888e67fd395cf032bae5 (diff)
* include/ruby/node.h: add new constants for rb_call()'s scope.
* eval.c (iterate_method): use CALL_* scope constant to specify proper scope value. * eval.c (rb_each, rb_apply, rb_funcall, rb_funcall2, rb_funcall3): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15884 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm.c')
-rw-r--r--vm.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/vm.c b/vm.c
index 38cde58139..087f7e78ec 100644
--- a/vm.c
+++ b/vm.c
@@ -501,7 +501,6 @@ vm_call_super(rb_thread_t *th, int argc, const VALUE *argv)
VALUE klass;
ID id;
NODE *body;
- int nosuper = 0;
rb_control_frame_t *cfp = th->cfp;
if (!cfp->iseq) {
@@ -530,7 +529,7 @@ vm_call_super(rb_thread_t *th, int argc, const VALUE *argv)
rb_bug("vm_call_super: not found");
}
- return vm_call0(th, klass, recv, id, id, argc, argv, body, nosuper);
+ return vm_call0(th, klass, recv, id, id, argc, argv, body, CALL_SUPER);
}
VALUE