aboutsummaryrefslogtreecommitdiffstats
path: root/eval.c
diff options
context:
space:
mode:
Diffstat (limited to 'eval.c')
-rw-r--r--eval.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/eval.c b/eval.c
index 54737f825d..728761560e 100644
--- a/eval.c
+++ b/eval.c
@@ -9172,9 +9172,12 @@ static VALUE
bmcall(VALUE args, VALUE method)
{
volatile VALUE a;
+ VALUE ret;
a = svalue_to_avalue(args);
- return rb_method_call(RARRAY(a)->len, RARRAY(a)->ptr, method);
+ ret = rb_method_call(RARRAY(a)->len, RARRAY(a)->ptr, method);
+ a = Qnil; /* prevent tail call */
+ return ret;
}
VALUE