summaryrefslogtreecommitdiffstats
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 58971b128..d049b7ff6 100644
--- a/eval.c
+++ b/eval.c
@@ -9273,9 +9273,12 @@ bmcall(args, method)
VALUE args, method;
{
volatile VALUE a;
+ VALUE ret;
a = svalue_to_avalue(args);
- return method_call(RARRAY(a)->len, RARRAY(a)->ptr, method);
+ ret = method_call(RARRAY(a)->len, RARRAY(a)->ptr, method);
+ a = Qnil; /* prevent tail call */
+ return ret;
}
VALUE