ruby-changes:46855
From: nobu <ko1@a...>
Date: Tue, 30 May 2017 21:48:03 +0900 (JST)
Subject: [ruby-changes:46855] nobu:r58970 (trunk): enum.c: rb_check_funcall_default for fallback value
nobu 2017-05-30 21:47:58 +0900 (Tue, 30 May 2017) New Revision: 58970 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=58970 Log: enum.c: rb_check_funcall_default for fallback value Modified files: trunk/enum.c Index: enum.c =================================================================== --- enum.c (revision 58969) +++ enum.c (revision 58970) @@ -361,9 +361,7 @@ find_all_i(RB_BLOCK_CALL_FUNC_ARGLIST(i, https://github.com/ruby/ruby/blob/trunk/enum.c#L361 static VALUE enum_size(VALUE self, VALUE args, VALUE eobj) { - VALUE r; - r = rb_check_funcall(self, id_size, 0, 0); - return (r == Qundef) ? Qnil : r; + return rb_check_funcall_default(self, id_size, 0, 0, Qnil); } static long -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/