[ruby-cvs:61636] nobu:r54474 (trunk): numeric.c: prefer rb_check_arity

nobu at ruby-lang.org nobu at ruby-lang.org
Sat Apr 2 15:33:26 JST 2016


nobu	2016-04-02 15:33:26 +0900 (Sat, 02 Apr 2016)

  New Revision: 54474

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=54474

  Log:
    numeric.c: prefer rb_check_arity
    
    * numeric.c (flo_round, int_to_s, int_round): use rb_check_arity
      instead of rb_scan_args for a simple optional argument.

  Modified files:
    trunk/numeric.c


More information about the ruby-cvs mailing list