From 0472578b26793e45434769200a806cb6190e5700 Mon Sep 17 00:00:00 2001 From: nobu Date: Sat, 15 Apr 2017 02:09:27 +0000 Subject: ruby.h: check argc to rb_funcall * include/ruby/ruby.h (rb_funcall): check if argc matches the number of variadic arguments, and replace with rb_funcallv. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58362 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- numeric.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'numeric.c') diff --git a/numeric.c b/numeric.c index f66fdaef54..ad7c984241 100644 --- a/numeric.c +++ b/numeric.c @@ -362,7 +362,7 @@ num_funcall_op_0(VALUE x, VALUE arg, int recursive) ID2SYM(func), x); } } - return rb_funcall(x, func, 0, 0); + return rb_funcallv(x, func, 0, 0); } static VALUE -- cgit v1.2.3